Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

thanks for asking this, I'm too embarrassed to ask it myself but had the same thoughts.


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.


So, multiple component libraries can be used inside one framework like Next.js?


Yes, if you wanted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: