Despite the utility React Hooks provide us, improper use can lead to performance degradation and elusive bugs. In this article, we’ll outline some common mistakes developers make when using React Hooks and solutions on how best to avoid them.
Dive deep into React’s useMemo hook and learn when to use it, when to avoid it, and what mistakes to steer clear of so you can reduce expensive computations.
This article discusses three less commonly known but still very powerful hooks from React Router—useSubmit(), useBeforeUnload() and useRouteError(). These hooks have been released as part of the latest major version of React Router, v6.