Upgrade to seperate create-react-class
library.
`React.createClass` was split off/depreciated as of 15.5.0: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.createclass
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import createReactClass from 'create-react-class';
|
||||
import { render } from 'react-dom';
|
||||
import { AppContainer } from 'react-hot-loader';
|
||||
import 'file-loader?name=index.html!../example/index.html';
|
||||
@ -57,7 +58,7 @@ for (const method in registry) { // eslint-disable-line
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.CMS = CMS;
|
||||
window.createClass = window.createClass || React.createClass;
|
||||
window.createClass = window.createClass || createReactClass;
|
||||
window.h = window.h || React.createElement;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user