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:
Caleb
2017-09-09 20:14:10 -06:00
parent 654f844b86
commit 5e9112ec71
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}