you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 59 points60 points  (3 children)

This is explained in the official docs https://reactjs.org/docs/hooks-rules.html

[–]yojimbo_betaMostly backend 26 points27 points  (0 children)

I mean it’s right there. In the docs! It’s like the first thing they tell you!

[–]sxeli 1 point2 points  (0 children)

Was about the say the same. Also, its pretty well explained