From b1311f2534d911a8c05c90f01d0a516fa6e7c95a Mon Sep 17 00:00:00 2001 From: Adam Golab Date: Mon, 2 Oct 2017 20:42:26 +0200 Subject: [PATCH 1/2] Updated dependency --- example/src/app.js | 4 +++- example/src/app.promise.js | 3 ++- package.json | 20 ++++++++++---------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/example/src/app.js b/example/src/app.js index 4f22f1e..5328583 100644 --- a/example/src/app.js +++ b/example/src/app.js @@ -1,8 +1,10 @@ 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", From 6df887651c4e0ed26fe093b9899341bc3b150076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Go=C5=82=C4=85b?= Date: Tue, 3 Oct 2017 08:08:56 +0200 Subject: [PATCH 2/2] Remove unneeded line to fix linter error --- example/src/app.js | 1 - 1 file changed, 1 deletion(-) diff --git a/example/src/app.js b/example/src/app.js index 5328583..e7942d7 100644 --- a/example/src/app.js +++ b/example/src/app.js @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom' import ProgressButton, {STATE} from '../../lib/index' import createReactClass from 'create-react-class' - const App = createReactClass({ getInitialState () { return {