Skip to content

Instantly share code, notes, and snippets.

@hieven
Created February 14, 2016 10:15
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 hieven/25a69aa3a953aaca0e1c to your computer and use it in GitHub Desktop.
Save hieven/25a69aa3a953aaca0e1c to your computer and use it in GitHub Desktop.
// 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