Created
February 14, 2016 10:15
-
-
Save hieven/25a69aa3a953aaca0e1c 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
// index.js | |
// This is a customized element | |
class Hello extends React.Component { | |
render() { | |
return ( | |
<div>Hello React</div> | |
); | |
} | |
} | |
// We'll render this element on `#root` via `document.getElementById('root')` | |
ReactDOM.render( | |
<Hello />, | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment