Skip to content

Commit

Permalink
Merge pull request #11 from argshook/chore/create-react-class
Browse files Browse the repository at this point in the history
Chore/create react class
  • Loading branch information
Richard Feldman authored Mar 26, 2018
2 parents 913e058 + 22ae945 commit 402f1e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var React = require('react');
var createReactClass = require('create-react-class');

module.exports = React.createClass({
module.exports = createReactClass({
initialize: function(node) {
if (node === null) return;
var app = this.props.src.embed(node, this.props.flags);
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"type": "git",
"url": "git+https://github.com/evancz/react-elm-components.git"
},
"dependencies": {
"create-react-class": "^15.5.3"
},
"peerDependencies": {
"react": ">=0.14.0"
},
Expand Down

0 comments on commit 402f1e8

Please sign in to comment.