Dark mode
Client APIs
API | Description | Documentation |
---|---|---|
createRoot | Creates a root for rendering React components | |
hydrateRoot | Hydrates server-rendered content |
General APIs
API | Description | Documentation |
---|---|---|
createPortal | Renders children into a different DOM node | |
flushSync | Forces React to flush updates synchronously | |
preconnect | Preconnects to a domain | |
prefetchDNS | Prefetches DNS for a domain | |
preinit | Preinitializes a resource | |
preinitModule | Preinitializes a module | |
preload | Preloads a resource | |
preloadModule | Preloads a module |
DOM Components
Component | Description | Documentation |
---|---|---|
Common (e.g. <div> ) | Basic HTML elements | |
<form> | Form element | |
<input> | Input element | |
<textarea> | Textarea element | |
<select> | Select element | |
<option> | Option element | |
<progress> | Progress element | |
<meta> | Meta element | |
<script> | Script element | |
<style> | Style element | |
<title> | Title element |
Hooks
Hook | Description | Documentation |
---|---|---|
useFormStatus | Provides status of a form |
Server APIs
API | Description | Documentation |
---|---|---|
prerender | Prerenders content | |
prerenderToNodeStream | Prerenders to a Node.js stream |