Interesting article. Thanks for sharing.
One concern, I love mapStateToProps feature of redux, with it I can just use PureComponent to make sure my component only updates when the props changed. I noticed you mentioned in the docs
> If your component accesses this.global.myObject.x
, it will re-render when this.global.myObject.y
changes, because the root key myObject
has changed. You should take this into consideration when nesting objects in your global state.
which I concern it can be a big trouble when the global state gets complicated.
Anyway, I know the pain of too much boilerplates.