Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead. #46

@epleaner

Description

@epleaner

Even after updating to @3.0.1, we are still seeing deprecation warnings related to PropTypes. It seems like it is happening in the src for Portal. The compiled code looks like this:

var Portal = _react2.default.createClass({
	  ...
	  propTypes: {
	    /**
	     * A Node, Component instance, or function that returns either. The `container` will have the Portal children
	     * appended to it.
	     */
	    container: _react2.default.PropTypes.oneOfType([_componentOrElement2.default, _react2.default.PropTypes.func])
	  },
          ...

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