Frontend development will be the first that will be completely replaced by agentic development where nobody needs to see any code at all. Its already possible and many companies are having this way of working quite succesfully. The quality is already better than 99% of what frontend engineers can achieve. Speed is just insane. I can create any ui. Whether it's web or platform specific. There are hardly any limitations. Frameworks are still useful. But I expect them to become less important.
What remains important as a dev is system knowledge. Understanding of how systems are tight together. The principles of distributed systems, security, prompt engineering, agentic automation. And that kind of knowledge.
Code syntax is from the old era. Maybe there is a niche for it. But not for the majority.