kriasoft / isomorphic-style-loader

CSS style loader for Webpack that is optimized for isomorphic (universal) web apps.
https://reactstarter.com
MIT License
1.27k stars 144 forks source link

Library forces users to create components as Pure Components #184

Open kartiksharma1607 opened 4 years ago

kartiksharma1607 commented 4 years ago

When using withStyles, library wraps React Component into a Pure Component.

https://github.com/kriasoft/isomorphic-style-loader/blob/master/src/withStyles.js#L17

This is done irrespective of user's preference. If user had created a normal React Component it should wrap it into a impure React Component. It should only wrap component into Pure Component if, user's component is itself a pure component.