| What it is | Work with immutable state by writing ordinary mutating code | Immutable persistent data collections for Javascript which increase efficiency and simplicity | Simple, scalable state management | A JS library for predictable global state management |
| Features | - produce: change a draft with normal mutating code and get a new immutable state
- Structural sharing: unchanged parts of the tree are reused, not copied
- Throws on accidental mutations of the frozen result
- Works with plain objects, arrays, Maps and Sets
- Curried producers for React setState and reducers
| - List, Stack, Map, OrderedMap, Set, OrderedSet and Record
- structural sharing with hash array mapped tries and vector tries
- value equality with is() and equals()
- getIn, setIn, updateIn and mergeDeep for nested data
- lazy Seq, Range and Repeat
- batched mutations with withMutations
- fromJS and toJS conversion
- Flow and TypeScript definitions included
- All 9 features
| - observable state updated with plain assignments
- computed values and reactions
- re-renders only the components that use changed state
- works outside any UI framework
- React bindings (mobx-react-lite)
| - single store
- actions and pure reducers
- middleware
- Redux DevTools time-travel debugging
- Redux Toolkit
- RTK Query, Redux Toolkit's data fetching and caching add-on
|