Created
November 19, 2015 09:56
-
-
Save peterlazar1993/07df955981a30b248334 to your computer and use it in GitHub Desktop.
React HelloWorld ES6
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
class HelloWorld extends React.Component { | |
render() { | |
return ( | |
<div> | |
Hello, World! | |
</div> | |
); | |
} | |
}; | |
React.render(<HelloWorld />, document.getElementById('container')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment