4 ms·
React is a JavaScript component library. That means single components from a React code base can be exported and reused in other projects. JavaScript framework
by hoofhearted 4y ago
React is a JavaScript component library. That means single components from a React code base can be exported and reused in other projects.
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.
- ilt 4y agoSo, multiple component libraries can be used inside one framework like Next.js?
- hoofhearted 4y agoYes, if you wanted.