Skip to content

Instantly share code, notes, and snippets.

@soska
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soska/2d75d5f9452d09d2f71c to your computer and use it in GitHub Desktop.
Save soska/2d75d5f9452d09d2f71c to your computer and use it in GitHub Desktop.
silly react app
'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