简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM