ReactDOMClient
These docs are old and won’t be updated. Go to react.dev for the new React docs.
These new documentation pages teach modern React:
The react-dom/client
package provides client-specific methods used for initializing an app on the client. Most of your components should not need to use this module.
import * as ReactDOM from 'react-dom/client';
If you use ES5 with npm, you can write:
var ReactDOM = require('react-dom/client');
Overview
The following methods can be used in client environments: