Skip to content

shallowCompare not set on React.addons (npm version 0.13.3) #4315

@pocketjoso

Description

@pocketjoso

According to the docs for react-codemod, React > 0.13.x should include React.addons.shallowCompare (which is used by the PureRenderMixin transformation) - but when installing react from npm this is not the case. In the locally installed react node module lib/ReactWithAddons is missing this line. Is the npm package not up to date, or what else is wrong here?

If it matters:
react: 0.13.3
npm: 2.12.1
OSX

(I know this error will go away with 0.14.x, but we can't really upgrade to that while it's in beta..

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