Skip to content

React.PropTypes is deprecated in React v15 #1

@ya332

Description

@ya332

React.PropTypes was deprecated in version 15 and removed in v16, the proptypes have moved to the prop-type packages, check out the blog post about it for more info migrating: https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-reactproptypes
The build will fail when the source code tries to do 'import React,{ React.PropTypes, Component } from 'react';
Instead all instances should be converted to import React, { Component } from 'react'; import PropTypes from 'prop-types';

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