Amol, Such a great comment, thanks.
Frontend development is complicated. If Machine Learning comes so far that it automates frontend development, that will be the least of the problem.
Once FE jobs get automated, then most of the jobs will be automated. Just think about it.
When a Machine Learning model can create and design better landing page than human, then a brach of marketing gets automated.