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 →

About the author

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

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.