constelation / monorepo

Mono repo for constelation's Components, functions, and CONSTANTS
https://constelation.github.io/monorepo/
MIT License
12 stars 3 forks source link

remove `PureComponent`s #72

Closed kylpo closed 7 years ago

kylpo commented 7 years ago

Refer to learnings at https://github.com/kylpo/notes/blob/master/shouldComponentUpdate.md#shouldcomponentupdate

Maybe I can shallowCompare all non-children props, then also shallowCompare children.props?

Or move everything to state with cwrp. Prune render to just cloneElement() with its state.

Also https://github.com/kylpo/notes/blob/master/HOC-and-cloneElement.md#reactcloneelement-workings