Skip to content

Commit 615ea42

Browse files
committed
use create-react-class instead React.createClass
1 parent fb3519c commit 615ea42

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/components/TinyMCE.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { findDOMNode } from 'react-dom';
33
import PropTypes from 'prop-types';
4+
import createReactClass from 'create-react-class';
45
import isEqual from 'lodash/isEqual';
56
import clone from 'lodash/clone';
67
import uuid from '../helpers/uuid';
@@ -30,7 +31,7 @@ const HANDLER_NAMES = EVENTS.map((event) => {
3031
return 'on' + ucFirst(event);
3132
});
3233

33-
const TinyMCE = React.createClass({
34+
const TinyMCE = createReactClass({
3435
displayName: 'TinyMCE',
3536

3637
propTypes: {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0"
2424
},
2525
"devDependencies": {
26-
"prop-types": "^15.6.0",
2726
"rackt-cli": "^0.8.0",
2827
"react": "^16.0.0",
2928
"react-dom": "^16.0.0"
3029
},
3130
"dependencies": {
32-
"lodash": ">=4.17.4"
31+
"create-react-class": "^15.6.2",
32+
"lodash": ">=4.17.4",
33+
"prop-types": "^15.6.0"
3334
}
3435
}

0 commit comments

Comments
 (0)