Open kartiksharma1607 opened 4 years ago
When using withStyles, library wraps React Component into a Pure Component.
withStyles
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.
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.