Context, the use() Hook, and State Machines

The use() hook lets you pass context directly instead of wrapping everything in providers. Pair that with a state machine mindset and the way you think about shared state in React shifts entirely.

June 7, 20261 min read3 / 4