TypeError: React.createClass is not a function
Opened this issue · 3 comments
sbmthakur commented
./node_modules/react-videojs/dist/index.js
node_modules/react-videojs/dist/index.js:8
5 | var blacklist = require('blacklist');
6 | var React = require('react');
7 |
> 8 | module.exports = React.createClass({
9 | displayName: 'VideoJS',
10 |
11 | componentDidMount: function componentDidMount() {
I think this is due to the changes in react. Any plans to handle this?
owbp commented
+1
This, and any components importing it, are unusable with the newer version(s) of react, causing a hard-crash on load.
sbmthakur commented
Yes, I had to downgrade to React 15 to get my work done.
Wangggym commented
I have the same problem. Does the author not maintain it?