Created
March 1, 2016 05:01
-
-
Save codeaholicguy/32067b4455d69cdd24eb to your computer and use it in GitHub Desktop.
This file contains 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
var Form = React.createClass({ | |
render: function(){ | |
return ( | |
<div> | |
<h3>Click the button</h3> | |
<input type="submit" /> | |
</div> | |
); | |
} | |
}); | |
var App = React.createClass({ | |
render: function(){ | |
return ( | |
<div> | |
<h1> Welcome to my app!</h1> | |
<Form /> | |
</div> | |
); | |
} | |
}); | |
React.render(<App />, document.getElementById("app")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment