React State and Effect Pitfalls
WIP
React’s hooks (in particular useState
and useEffect
) are deceptively simple. At first glance, it feels like: state goes into useState, side effects go into useEffect. But in real-world apps, things get messy quickly: bugs from re-renders, race conditions, and code that’s harder to reason about than it should be.
Let’s break down when to use state, when not to, why overusing useEffect is harmful, and how useReducer can often make your code cleaner.
My favourite coffee places WIP
A list of my favourite coffee places I have visited. A highly subjective matter.
read more