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
first install prop-types : npm i prop-types --save
and in FlipCard.js :
add var PropTypes = require('prop-types'); and
replace _react.PropTypes with PropTypes
after that i have a new problem:
TypeError : _react2.default.createClass is not a function
to resolve this problem too i did same : npm install create-react-class --save
add var createReactClass = require('create-react-class'); and
replace _react2['default'].createClass with createReactClass
save FlipCard.js and restart project with npm start and it worked like a charm!!!
Hope this has been helpful :))
When i import
FlipCard
component, it gives the following warning:-TypeError: Cannot read property 'string' of undefined
The text was updated successfully, but these errors were encountered: