Manage global state with React hooks.

A useState Overview 🏁

const [ value, setValue ] = useState(DEFAULT_VALUE);

Global State Differences 🆚

Instantiating the Global State 🌞

Using the Global State 🌎

Can I access the entire global state? 👪

What about Reducers? 🤔

Summary 📝

Similarities:

Differences:

Conclusion 🔚

Senior front end engineer / charlesstover.com

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