Skip to content

React v15.5 update causes breaking changes #36

@shammamah-zz

Description

@shammamah-zz

PropTypes must now be imported from the prop-types package, as mentioned in the React v15.5 announcement: https://reactjs.org/blog/2017/04/07/react-v15.5.0.html

From the announcement:

Prop types are a feature for runtime validation of props during development. We’ve extracted the built-in prop types to a separate package to reflect the fact that not everybody uses them.
In 15.5, instead of accessing PropTypes from the main React object, install the prop-types package and import them from there:

React.PropTypes is used here:

selectedAtomIds: React.PropTypes.arrayOf(React.PropTypes.number),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions