React DOM APIs – React
React DOM APIs – React
v19
API REFERENCE
APIs
These APIs can be imported from your components. They are rarely used:
prefetchDNS lets you prefetch the IP address of a DNS domain name that
you expect to connect to.
preconnect lets you connect to a server you expect to request resources
from, even if you don’t know what resources you’ll need yet.
preload lets you fetch a stylesheet, font, image, or external script that
you expect to use.
https://react.dev/reference/react-dom 1/3
20/02/2025, 18:33 React DOM APIs – React
preloadModule lets you fetch an ESM module that you expect to use.
preinit lets you fetch and evaluate an external script or fetch and insert
a stylesheet.
preinitModule lets you fetch and evaluate an ESM module.
Entry points
The react-dom package provides two additional entry points:
Removed APIs
These APIs were removed in React 19:
PREVIOUS
<title>
NEXT
createPortal
https://react.dev/reference/react-dom 2/3
20/02/2025, 18:33 React DOM APIs – React
uwu?
Describing the UI
Adding Interactivity
Managing State
Escape Hatches
Community More
Acknowledgements Terms
https://react.dev/reference/react-dom 3/3