We are posting on a website run by a venture capital firm, maybe you can explain why the market is not relevant here.
As far as education goes, it's about learning how to use a particular framework, which is highly temporal knowledge and makes use of mostly crystallized intelligence. It's problematic and largely inefficient that most web developers jump from framework to framework as the market dictates. There is an endless cycle of learning mostly temporal knowledge that's discarded as soon as the next framework comes.
People talk of fundamental CS skills, but in reality it's almost never needed in web development, where there's frameworks that abstract everything away. A tetris clone in vanilla JS would perform much better, and the code would be more directly relevant to the application, but rarely is anyone hired to do just that. It serves business interests more to have developers who are conventional, easily replaceable cogs in a machine.