5 Tips to Help You Avoid React Hooks Pitfalls

Kent C. Dodds:

As hot as it is, React Hooks require a bit of a change in the way you think about React Component Lifecycles, State, and Side Effects and it can be easy to fall into problematic scenarios if you’re not thinking about React Hooks properly. So let’s look a bit at what pitfalls you could come across and how you can change your thinking so you avoid them.

Glad to see one of the tips is to no longer think in lifecycles, but in effects. Also, must say I hadn’t really checked out the ESLint React Hooks Plugin yet 😬.

5 Tips to Help You Avoid React Hooks Pitfalls →

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.