What do these frameworks do? Isn’t React itself a framework? Why do your frameworks have frameworks of their own???
What do these frameworks do? Isn’t React itself a framework? Why do your frameworks have frameworks of their own???
JavaScript frameworks like Create React App, Next.js, Angular.js do not work like that. They completely compile the code base and inject the said components from above into an html page.
The biggest difference between a component library and a framework is that a framework requires 100% adoption, whereas a library doesn’t.
Going back 20-25 years ago there was web design and back end development. Web design was considered a non-programming visually creative field. That required less work experience to achieve competence and thus was an excuse to pay those people half or less than the programmers. That immediately creates a bias that those people worth less and thus are less worthy of investment. That bias persists even though it was hardly qualified at the time and certainly out-dated now, but it goes to scrutiny of candidate selection/preparation.
Also, back in the day the hot languages were Java and later C#. Both of those were at the time essentially a garbage collected C++ with less overhead. That is what employers were looking for in programming candidates, and so that is what universities delivered. Most programmers come from university CS programs. This is true even today.
None of that prepares people to write JavaScript. Trying to shoe-horn a bunch of unnecessary OOP nonsense into JavaScript is like stabbing yourself in the face, so its nice if there is some tool to fill that gap.
Furthermore, many programmers cannot architect a new original application on their own. There is greater demand for bodies to type code than there exists people of sufficient intelligence and capabilities to fill those requirements. Frameworks are boxed architectures. Its not that everybody who uses or favors a framework is negligently incompetent, but for some people this is absolutely true and then there are people who build their entire careers upon that tool.
As a comparison a carpenter is not a screwdriver user. A carpenter is expected to deliver a product. A framework is a tool, like a screwdriver, but tool users are easier to select than craftsmen.