Always useMemo your context value

1 · Kent C. Dodds · May 6, 2019, midnight
When I explained how I create and use context for my React applications , I touched briefly on the importance of using React's useMemo hook. Here's that example again: I got a lot of questions about why useMemo is necessary here, so I'm going to…...