diff --git a/README.md b/README.md index 95950cd..5e659d1 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,3 @@ Clone this repo and run `npm install` then simply open `index.html`. Click World to see the onClick event fire. Noteworthy npm package is steal-jsx -also please remember that you need to put the "!" after any non js files. diff --git a/package.json b/package.json index 75ce7bd..505e7f0 100644 --- a/package.json +++ b/package.json @@ -11,16 +11,13 @@ "dependencies": { "react": "^0.14.8", "react-dom": "^0.14.8", - "steal": "^0.15.3" + "steal": "^0.16.4", + "steal-jsx": "0.0.0" }, "system": { "transpiler": "babel", "babelOptions": { "blacklist": [] } - }, - "devDependencies": { - "babel-core": "^6.7.4", - "steal-jsx": "0.0.0" } } diff --git a/world.jsx b/world.jsx index 767f68b..d85a689 100644 --- a/world.jsx +++ b/world.jsx @@ -1,6 +1,6 @@ import React from 'react'; -export default class World extends React.Component { +class World extends React.Component { constructor(props) { super(props); this.state = { @@ -19,3 +19,7 @@ export default class World extends React.Component { return
this.clicked()}>{this.state.message}
; } } +World.displayName = 'World'; +World.propTypes = {}; + +export default World;