diff --git a/example/src/app.js b/example/src/app.js index 4f22f1e..e7942d7 100644 --- a/example/src/app.js +++ b/example/src/app.js @@ -1,8 +1,9 @@ import React from 'react' import ReactDOM from 'react-dom' import ProgressButton, {STATE} from '../../lib/index' +import createReactClass from 'create-react-class' -const App = React.createClass({ +const App = createReactClass({ getInitialState () { return { button1State: STATE.NOTHING, diff --git a/example/src/app.promise.js b/example/src/app.promise.js index 80a997f..2f74721 100644 --- a/example/src/app.promise.js +++ b/example/src/app.promise.js @@ -1,8 +1,9 @@ import React from 'react' import ReactDOM from 'react-dom' import ProgressButton from '../../lib/index' +import createReactClass from 'create-react-class' -const App = React.createClass({ +const App = createReactClass({ render () { return (
diff --git a/package.json b/package.json index f971b86..c63db23 100644 --- a/package.json +++ b/package.json @@ -10,19 +10,19 @@ "react-progress-button.css" ], "dependencies": { - "prop-types": "^15.5.8", - "create-react-class": "^15.5.2" + "prop-types": "^15.6.0", + "create-react-class": "^15.6.2" }, "devDependencies": { - "babel-cli": "^6.8.0", - "babel-core": "^6.7.6", - "babel-preset-es2015": "^6.5.0", - "babel-preset-react": "^6.5.0", - "babel-preset-stage-0": "^6.5.0", - "react": "^15.1.0", - "react-dom": "^15.1.0", + "babel-cli": "^6.26.0", + "babel-core": "^6.26.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react": "^6.24.1", + "babel-preset-stage-0": "^6.24.1", + "react": "^16.0.0", + "react-dom": "^16.0.0", "standard": "^8.6.0", - "webpack": "^1.12.15" + "webpack": "^3.6.0" }, "scripts": { "prepublish": "make clean build",