Skip to content

Library forces users to create components as Pure Components #184

Open
@kartiksharma1607

Description

@kartiksharma1607

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions