Hacker News new | ask | show | jobs
by sbergot 2017 days ago
I have used them on a medium project. I enjoy them very much but I have seen a lot of people struggle with the "rules of hooks"*

I can see why some people prefer to use classes where the design is cleaner (even though you are more limited).

*: https://reactjs.org/docs/hooks-rules.html#:~:text=Only%20Cal....

1 comments

If you use a linter though you can just auto enforce all the rules and back to it being just fine. An extra setup step but tools like create react app bundle ESLint for you already so I don’t mind it.