Hacker News new | past | comments | ask | show | jobs | submit login

React is a framework though.

The main differentiator between the two is Inversion of Control.

React developers write their code to be called by the React application. You aren't choosing to include React or not (what you would do with a library), your whole frontend application is built within the context of the React environment in which it will run.




Dan Abramov, React lead, says this:

"i like to think of React as two things. React is a library. it is also an architecture (which frameworks may implement)"

https://twitter.com/dan_abramov/status/1585088716443615234


Ember.js, Angular and Vue are frameworks. React is a render library.


If you're only using React then it's just a rendering library running in YOUR application.


> React is a framework though.

framework vs library -- how would you define them?


Your code calls a library; a framework calls your code.


That sounds nice but it’s not that simple. In the case of react you are doing both. You are importing functions like hooks and render. Then you pass render a function that then gets called by react.




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

Search: