2. Basic level of immutability is provided doing state = {…state, …changes}
3. Async state changes
shouldComponentUpdate (newProps) {
return newProps.obj !== this.props.obj
}
store = createStore(reducer) store.dispatch(action) var someAction = {type:'doSomething') var reducer = (state, action) => { if (action.type === 'doSomething') { return changedState; } }
References
https://medium.com/@dan_abramov/the-evolution-of-flux-frameworks-6c16ad26bb31
https://spapas.github.io/2016/03/02/react-redux-tutorial/
http://monicalent.com/blog/2017/07/23/manage-state-in-react/
http://www.thedevnotebook.com/2017/08/the-observer-pattern-in-javascript.html
http://www.jchapron.com/2015/08/14/getting-started-with-redux/
https://medium.com/hacking-and-gonzo/flux-vs-mvc-design-patterns-57b28c0f71b7
https://medium.com/@learnreact/container-components-c0e67432e005
https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750
https://github.com/acdlite/
https://reactpatterns.com/
https://www.robinwieruch.de/essential-react-libraries-framework/
https://github.com/krasimir/react-in-patterns
https://medium.com/@hwclass/the-children-of-redux-part-4-react-easy-state-kea-and-state-management-with-rxjs-eab742ea8507
https://www.robinwieruch.de/tips-to-learn-react-redux/
Misc Libs: recompose, rematch, react-act, actionware