News for hackers. Stuff that matters.
Re:Why I Hate Frameworks (2005) by erikpukinskis on Tuesday October 19, 2021 @07:50PM (#28925182)
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.

Re:Why I Hate Frameworks (2005) by azangru on Tuesday October 19, 2021 @09:53PM (#28925929)
> 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"

Re:Why I Hate Frameworks (2005) by AprilArcus on Tuesday October 19, 2021 @10:08PM (#28926003)
React 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.
Re:Why I Hate Frameworks (2005) by axguscbklp on Tuesday October 19, 2021 @10:54PM (#28926237)
I 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.
Re:Why I Hate Frameworks (2005) by dotancohen on Wednesday October 20, 2021 @03:25AM (#28927780)

  > 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.