Search⌘ K

React DOM

Explore how ReactDOM.render connects your React application to HTML by rendering JSX inside a specified HTML element. Understand the role of the root element and how React integrates seamlessly with static HTML to build dynamic single-page applications.

We'll cover the following...

The App component has been in our application from the start, in the src/index.js file:

Node.js
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);

Next to React, there is another imported library called react-dom, in which a ReactDOM.render() ...