React.createClass has been removed since 0.48 and PropTypes have been removed

An alternative is
the createReactClass method from the create-react-class package


var createReactClass = require('create-react-class');
var Greeting = createReactClass({
  render: function() {
    return <h1>Hello, {this.props.name}</h1>;
  }
});


Details https://reactjs.org/docs/react-without-es6.html



Use checkPropTypes instead of calling PropTypes directly

Related Posts