3 ms·
Last time I had the library vs framework argument (1996), I concluded with this definition: You call a library. A framework calls you. I don't know React, so
by specialist 10y ago
Last time I had the library vs framework argument (1996), I concluded with this definition:
You call a library.
A framework calls you.
I don't know React, so can't say which it is.
- acemarke 10y agoYeah, I would agree that in that sense, React is a framework. You call ReactDOM.render(), but from there it instantiates your components and calls their lifecycle methods as appropriate. On the flip side, it's nowhere near as all-encompassing as Angular or Ember. No built-in AJAX handling, no complex data model manipulations, no preferred project architecture. So in that sense, it's much closer to the library side of things.