DEV Community

Mariusz
Mariusz

Posted on • Edited on

React Tldr; 5 Tips to Help You Avoid React Hooks Pitfalls

  • Read React Hooks documentation and FAQ before you start.
  • Install, use, and follow the ESLint plugin.
  • Don't think about Lifecycles, think about synchronizing side effects to state.
  • Know that React is fast by default and do some digging before applying performance optimizations pre-maturely.
  • Avoid testing implementation details.

Source: https://kentcdodds.com/blog/react-hooks-pitfalls

Top comments (0)