`useMemo` and Stable Values
The most common pattern I use when writing custom React hooks is to return a tuple of [state, handlers]. state is the value held by the hook, and handlers is an object with methods that update the state. 1 The way I write the handlers object typicall...
tusharbeladiya.hashnode.dev4 min read