/ReactStateMuseum

A whirlwind tour of React state management systems by example

Primary LanguageJavaScriptMIT LicenseMIT

The React State Museum


One Packing List App Written in:

Technology React React Native
setState
React 16.x Context
Redux
MobX
unstated
MobX-State-Tree
GraphQL Apollo + Amazon AppSync
setState + react-automata
Freactal
ReduxX
pure-store
ReactObservableStore
react-easy-state
rematch
unistore
Microstates
remx TBD

Examples to help portray the how, why, which, pros, and cons of various state management systems in the React ecosystem.

Every app is meant to be small, simple, and the same as each other. The only difference should be the state management decisions of each. The repeated React and ReactNative app is a Packing List, with the name based on the state technology.

Web Native
example gif of app example gif of app

What are the differences?

Look at the code for yourself, OR check this blog post on the findings.

https://hackernoon.com/the-react-state-museum-a278c726315

To Run Web

  • Click the codesandbox link in the list above
  • OR Clone this repo, then cd into each folder and follow the directions in readme

To Run Native

  • Clone this repo, then cd into each folder and follow the directions in readme

Contributors

Thanks goes to these wonderful people (emoji key):


Michael Stecky-Efantis

💻 💡 ⚠️

Arthur Gunn

💻 💡

Jason Lengstorf

📖

Marco Afonso

💻 💡

Robert DeLuca

💻 💡

stereobooster

📖

Juan David Castro

💻 📖 💡

Iurii Kyrylenko

💻

Charles Lowell

💻

Jakub Wadas

💻 📖

Anton Rusinov

💻 💡

Miklos Bertalan

💻

Gant Laborde

💻 📖 💡

Tyler Reitz

💻 📖

Daniel Zlotin

💻 💡 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!