3 ms·
No, Rails and Laravel are also the sprawling type of framework. They handle everything from routing to database access. React does one thing. It’s arguably not
by erikpukinskis 5y ago
No, Rails and Laravel are also the sprawling type of framework. They handle everything from routing to database access.
React does one thing. It’s arguably not a framework at all.
- azangru 5y ago> React does one thing Maybe this was so in 2013-2015, but React today does a lot of things (module loading, component rendering, basic state management, scheduling, memoisation, caching), and will soon do even more (server components in some custom json format, rendering server). Gone are the days when React was a simple "view library"
- AprilArcus 5y agoReact doesn't load modules, you need a bundler for that. It just supports a component type that blocks rendering until a promise containing a component resolves.
- axguscbklp 5y agoI agree that it is arguable, but I would say that React is a framework for this reason: usually you do not decide when to call React code, instead React code decides when to call your code.
- dotancohen 5y ago> React does one thing. It’s arguably not a framework at all. But that's React's failure, too. The lack of officially-supported libraries for common things such as routing leads to the horrible situation of having multiple competing, each-with-different-inconsistencies implementations of routing and moving from one React project to another transfers very little skills compared to other libraries such as Vue.