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:
parent
654f844b86
commit
5e9112ec71
@ -99,6 +99,7 @@
|
|||||||
"autoprefixer": "^6.3.3",
|
"autoprefixer": "^6.3.3",
|
||||||
"babel-plugin-transform-builtin-extend": "^1.1.0",
|
"babel-plugin-transform-builtin-extend": "^1.1.0",
|
||||||
"classnames": "^2.2.5",
|
"classnames": "^2.2.5",
|
||||||
|
"create-react-class": "^15.6.0",
|
||||||
"dateformat": "^1.0.12",
|
"dateformat": "^1.0.12",
|
||||||
"deep-equal": "^1.0.1",
|
"deep-equal": "^1.0.1",
|
||||||
"fuzzy": "^0.1.1",
|
"fuzzy": "^0.1.1",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import createReactClass from 'create-react-class';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
import { AppContainer } from 'react-hot-loader';
|
import { AppContainer } from 'react-hot-loader';
|
||||||
import 'file-loader?name=index.html!../example/index.html';
|
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') {
|
if (typeof window !== 'undefined') {
|
||||||
window.CMS = CMS;
|
window.CMS = CMS;
|
||||||
window.createClass = window.createClass || React.createClass;
|
window.createClass = window.createClass || createReactClass;
|
||||||
window.h = window.h || React.createElement;
|
window.h = window.h || React.createElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user