React DOM APIs


APIs

These APIs can be imported from your components. They are rarely used:

  • lets you render child components in a different part of the DOM tree.
  • lets you force React to flush a state update and update the DOM synchronously.

Resource Preloading APIs

These APIs can be used to make apps faster by pre-loading resources such as scripts, stylesheets, and fonts as soon as you know you need them, for example before navigating to another page where the resources will be used.

frequently handle resource loading for you, so you might not have to call these APIs yourself. Consult your framework’s documentation for details.

  • lets you prefetch the IP address of a DNS domain name that you expect to connect to.
  • lets you connect to a server you expect to request resources from, even if you don’t know what resources you’ll need yet.
  • lets you fetch a stylesheet, font, image, or external script that you expect to use.
  • lets you fetch an ESM module that you expect to use.
  • lets you fetch and evaluate an external script or fetch and insert a stylesheet.
  • lets you fetch and evaluate an ESM module.

Entry points

The react-dom package provides two additional entry points:

  • contains APIs to render React components on the client (in the browser).
  • contains APIs to render React components on the server.

Removed APIs

These APIs were removed in React 19:

  • : see .
  • : use instead.
  • : use instead.
  • : use instead.
  • : use APIs instead.
  • : use APIs instead.