You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get the files to work, you need to go into any applicable or broken file, and add:
var PropTypes = require('prop-types');
var createReactClass = require('create-react-class');
To the top along with any other require statements, then you have to change the create class line to:
module.exports = createReactClass({
And finally, go to any instance of PropTypes with React in front of it (not things like createElement, keep those the same), and remove the React. or _react. in front of it. It's kind of tedious, but I got it all working with that.
https://reactjs.org/docs/typechecking-with-proptypes.html
The text was updated successfully, but these errors were encountered: