Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rendering "Hello, World!" in React
// This is index.js written by JSX
const element = <h1>Hello, world</h1>;
ReactDOM.render(
element,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment