Error : React.createClass is not a function [WebDataRocks]

90 Views Asked by At

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)?

1

There are 1 best solutions below

0
On

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.