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 (