Reputation: 21
I'm trying to use WebDataRocks(npm) with React(v16.14.0) and its failing with the below error "React.createClass is not a function"
Does it support React(v16.14.0)?
Upvotes: 1
Views: 86
Reputation: 76
You are right, there was an issue with React v16.14.0.
The PropTypes have been moved from React to their own package prop-types
, so they need to be imported separately.
The webdatarocks.react.js file got updated and now it works well with React v16.14.0. Here is a link to a WebDataRocks sample React project on GitHub for reference.
Upvotes: 0