State Management in React, Part 1: From useState to useReducer
A practical ladder for managing state in React: start local, lift when you must, reach for context and a store only when the pain is real.
A practical ladder for managing state in React: start local, lift when you must, reach for context and a store only when the pain is real.
Custom hooks are where the logic you pull out of components goes to live. Here is how to design ones that are reusable instead of just relocated.
What are useMemo and useCallback used for? We go over what they are and when you might want to use them in this post.