Shuning H
1 min readNov 2, 2018

--

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.

--

--

Shuning H

Web Developer, Urban Sketcher, Interior Designer