Re Ducks - 401-advanced-javascript-aimurphy/seattle-javascript-401n13 GitHub Wiki
lots of boiler plate + magic = redux = context + reducer
REDUX SOLVES!...the same problem context did: GLOBAL STATE
(see FRV w/John @ 839pm 1 OCT 19) redux is context under the hood, it is also reducer (the switch case thing)
Pros on context:
- you are in control because you are in control
- because you you wrote the API
CONs:
- it's complicated at scale
- multiple APIs
Store, made at a high level, has your global state and all the functions to change the state it is super consistent.
redux is important for multiple things that need different kids of state.--growing apps that need to share stuff need redux
Redux is on NPM:
npm install --save redux
links: fcc redux