1. React
  2. React Rally
  3. 2019
  4. React Hook Pitfalls

React Hook Pitfalls

Kent C. Dodds at React Rally 2019

The hooks honeymoon phase is over. We were able to overlook our confusion as a reasonable familiarity issue, but now it’s time to get real about the pitfalls of React Hooks. Hooks lead to a better user experience and fewer bugs for sure, but without the right foundational understanding of them and certain JavaScript semantics, we’ll probably cause other problems in the process of using hooks. In this talk, we’ll explore some of the gotchas of using hooks, why those things are problems, and how to think about hooks so we develop an intuition for how to use hooks while avoiding the pitfalls.