Hacker News new | ask | show | jobs
by 000ooo000 562 days ago
>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.

1 comments

Again, you can still use class components today, feel free and have fun.
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".
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.