ReactDOM API
↔ core react library to render VDOM
react-dom/client
React 18
+ Package to render App
Source: reactjs.org/docs/react
react-dom/server
Package to import ReactDOMServer object for access to render components to static markup
Escape Hatch
(mech) to express logic outside React model - to direct manipulate DOM
createPortal()
ReactDOM API
Escape Hatch fn to render child
Element to any container
Element other than parent
flushSync()
render()
replace by createRoot()
. ReactDOM API
function to render element
to DOM API inside container
- for Client Component only
hydrate()
replace by hydrateRoot()
ReactDOM API
function to Hydrate container render by ReactDOMServer
findDOMNode()
deprecated ReactDOM API
Escape Hatch to access DOM API Node
unmountComponentAtNode()
replace by root.unmount()
Hydrate
(process) to update content in static HTML
renderer for browser & client-side renderin
render()
to create & manages component
split from core react library
References
render()
↔ replace bycreateRoot()
.ReactDOM API
function to renderelement
to DOM API insidecontainer
- for Client Component onlyhydrate()
↔ replace byhydrateRoot()
ReactDOM API
function to Hydrate container render byReactDOMServer
ReactDOMServer
↔ReactDOM API
Interface Object to render FC to static HTMLPortal
↔ReactDOM API
Escape Hatch to renderchildren
outside Component Hierarchy of Parent ComponentcreatePortal()
↔ReactDOM API
Escape Hatch fn to renderchild
Element to anycontainer
Element other than parentfindDOMNode()
↔ deprecatedReactDOM API
Escape Hatch to access DOM APINode