News for hackers. Stuff that matters.
Re:If Not React, Then What? by 000ooo000 on Saturday November 30, 2024 @05:49PM (#42284622)
>you get weird stateful functions

This is one of the reasons I think hooks stink. It seems like they tried so hard to avoid using classes that they came up with an opaque, framework-only way to manage state so that they could declare "ha! Stateless functions at last!". The state's still there, it's always gonna be there, it's just now hidden behind an abstraction that has a few footguns.

Re:If Not React, Then What? by lucsky on Saturday November 30, 2024 @06:01PM (#42284683)
Again, you can still use class components today, feel free and have fun.
Re:If Not React, Then What? by 000ooo000 on Saturday November 30, 2024 @06:11PM (#42284751)
Unsure what your point is. I know that; the codebase I work on professionally has both. This thread is discussing the quality of the hooks API.
Re:If Not React, Then What? by baobabKoodaa on Sunday December 01, 2024 @02:33PM (#42290177)
The question in this thread is "What do you find hard to learn about react". The question is not "are you allowed to not learn about react".