Open in app
Charles Stover
2.7K Followers
About

Sign in

2.7K Followers
About
Open in app
Charles Stover

Charles Stover

Nov 14, 2018·1 min read

The useReducer hook is a local state management solution. That state is accessible to the one component, but not to other components. React hooks are very simple and do not have a lot of overhead. I am excited for their future. You may be interested in my sibling article on managing global state with React hooks.

Charles Stover

Senior front end engineer / charlesstover.com

How about the useReducer hook? You get the declarative state management without importing redux.
2
1

hh83917

More from Charles Stover

Senior front end engineer / charlesstover.com

More From Medium

New to React? Here are 10 tips you should know

Charles Stover

Write actionable backlog items

Charles Stover

Optimal VS Code settings

Charles Stover

How to Apply Your Brand’s Theme to AWS UI Components

Charles Stover

Snapshot testing does not work in practice

Charles Stover

Testing AWS UI components with Jest

Charles Stover

Use the React context API instead of mocking in unit tests

Charles Stover

Replacing let with const

Charles Stover

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store