ReactDOM

A brief introduction to ReactDOM and render() method in React application.

We'll cover the following...

The App component is located in your entry point to the React world: the src/index.js file.

Press + to interact
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);

ReactDOM.render() uses a DOM node in your HTML to replace it with JSX. It’s a way to integrate React in any foreign application easily, and you can use ReactDOM.render() ...

Access this course and 1400+ top-rated courses and projects.