3 ms·
>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 wit
by 000ooo000 2y 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.
- lucsky 2y agoAgain, you can still use class components today, feel free and have fun.
- 000ooo000 2y agoUnsure 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.
- baobabKoodaa 2y agoThe 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".