How to manage your global state in a React app?

Where should I store my data?

Server state or API data

Form data or user entry data

Navigation state

Components state

Modal view or similar types of global components state

User preferences or user session data

Configs and feature flags

What about just Redux?

“People often choose Redux before they need it.”

Dan Abramov, co-author of Redux.

Source: https://2020.stateofjs.com/en-US/technologies/datalayer/

What does the co-author of Redux think today?

Do I still need Redux?

Conclusion

About me

--

--

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