Last active
August 29, 2015 14:23
-
-
Save soska/2d75d5f9452d09d2f71c to your computer and use it in GitHub Desktop.
silly react app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const React = require('react'); | |
const App = React.createClass({ | |
getInitialState(){ | |
return { | |
hello : 'world' | |
}; | |
}, | |
render(){ | |
return ( | |
<div className='hello-world'> | |
<h1> Hello {this.state.hello} </h1> | |
</div> | |
); | |
} | |
}); | |
React.render(<App/>, document.getElementById('main')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment