alx100 / ReactStateMuseum

A whirlwind tour of React state management systems by example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
Microstates soon

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

About

A whirlwind tour of React state management systems by example


Languages

Language:JavaScript 39.0%Language:Objective-C 25.8%Language:HTML 14.3%Language:Python 11.4%Language:Java 9.4%