gaearon / react-side-effect

Create components whose nested prop changes map to a global side effect
MIT License
1.22k stars 75 forks source link

Use PureComponent and remove the dependency on shallowequal #60

Closed realityking closed 5 years ago

realityking commented 5 years ago

Since react-side-effect 2.0 requires React 16, it can start using PureComponent. This brings the size of the minified UMD build down to 812 bytes - saving ~20% (0.2 KB).

realityking commented 5 years ago

I just realised that this change also means some rolllup plugins can be removed. Added those changes as well.

lourd commented 5 years ago

LGTM. Good catch on the build script changes.