fix #1 React.createClass is deprecated

This commit is contained in:
Devin Chen 2017-06-03 20:04:21 +08:00
parent e05eb35a64
commit 14d48c7558
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import React, { PropTypes } from 'react';
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
import align from 'dom-align';
import addEventListener from './addEventListener';
//import isWindow from './isWindow';

View File

@ -10,6 +10,10 @@ var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _createReactClass = require('create-react-class');
var _createReactClass2 = _interopRequireDefault(_createReactClass);
var _domAlign = require('dom-align');
var _domAlign2 = _interopRequireDefault(_domAlign);

View File

@ -18,6 +18,7 @@
"dependencies": {
"add-dom-event-listener": "^1.0.1",
"component-classes": "^1.2.6",
"create-react-class": "^15.5.3",
"dom-align": "^1.5.2",
"warning": "^3.0.0"
},