Skip to content

Deprecation warnings with React 15.5.3 #1661

@sebastianiorga

Description

@sebastianiorga
  1. Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
  2. Warning: AutosizeInput: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

Solution for first one:

  1. Add prop-types package.
  2. Any file that has 'React.PropTypes' in it: add an import for PropTypes, remove the React. prefix.

Not sure about the exact fix for the second one. I guess adding create-react-class to dependencies if refactoring to classes isn't viable?

Thanks for building this package, dude!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions