React Elements: Rendering an Element into the DOM

const element = <h1>Hello, world</h1>;
ReactDOM.render(element, document.getElementById('root'));

To render a React element into a root DOM node, pass both to ReactDOM.render().

Related concepts

Rendering an Element into the DOM

React Elements: Rendering an Element into the DOM — Structure map

Clickable & Draggable!

React Elements: Rendering an Element into the DOM — Related pages: