diff --git a/package.json b/package.json index 732eb384..60cf6fc4 100644 --- a/package.json +++ b/package.json @@ -99,6 +99,7 @@ "autoprefixer": "^6.3.3", "babel-plugin-transform-builtin-extend": "^1.1.0", "classnames": "^2.2.5", + "create-react-class": "^15.6.0", "dateformat": "^1.0.12", "deep-equal": "^1.0.1", "fuzzy": "^0.1.1", diff --git a/src/index.js b/src/index.js index 3884354c..be5d2cf6 100644 --- a/src/index.js +++ b/src/index.js @@ -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; }