
Guide to useReducer in React
A practical guide to React's useReducer hook: how it works, when to prefer it over useState, and a complete example for managing complex state.
3posts

A practical guide to React's useReducer hook: how it works, when to prefer it over useState, and a complete example for managing complex state.

The most common mistakes to avoid when using React hooks: conditional calls, order, nested functions, and how to recognize them.

How to combine useContext and useState in React to share state and its update function between components, with a live example.