mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
* correct IconExperimental naming and usage (from #7972) Co-authored-by: Tuna <198469603+TunaDev0@users.noreply.github.com> * Bump Activity to Canary in docs --------- Co-authored-by: Tuna <198469603+TunaDev0@users.noreply.github.com>
468 lines
12 KiB
JSON
468 lines
12 KiB
JSON
{
|
|
"title": "API Reference",
|
|
"path": "/reference/react",
|
|
"routes": [
|
|
{
|
|
"hasSectionHeader": true,
|
|
"sectionHeader": "react@{{version}}"
|
|
},
|
|
{
|
|
"title": "Overview",
|
|
"path": "/reference/react"
|
|
},
|
|
{
|
|
"title": "Hooks",
|
|
"path": "/reference/react/hooks",
|
|
"routes": [
|
|
{
|
|
"title": "useActionState",
|
|
"path": "/reference/react/useActionState"
|
|
},
|
|
{
|
|
"title": "useCallback",
|
|
"path": "/reference/react/useCallback"
|
|
},
|
|
{
|
|
"title": "useContext",
|
|
"path": "/reference/react/useContext"
|
|
},
|
|
{
|
|
"title": "useDebugValue",
|
|
"path": "/reference/react/useDebugValue"
|
|
},
|
|
{
|
|
"title": "useDeferredValue",
|
|
"path": "/reference/react/useDeferredValue"
|
|
},
|
|
{
|
|
"title": "useEffect",
|
|
"path": "/reference/react/useEffect"
|
|
},
|
|
{
|
|
"title": "useId",
|
|
"path": "/reference/react/useId"
|
|
},
|
|
{
|
|
"title": "useImperativeHandle",
|
|
"path": "/reference/react/useImperativeHandle"
|
|
},
|
|
{
|
|
"title": "useInsertionEffect",
|
|
"path": "/reference/react/useInsertionEffect"
|
|
},
|
|
{
|
|
"title": "useLayoutEffect",
|
|
"path": "/reference/react/useLayoutEffect"
|
|
},
|
|
{
|
|
"title": "useMemo",
|
|
"path": "/reference/react/useMemo"
|
|
},
|
|
{
|
|
"title": "useOptimistic",
|
|
"path": "/reference/react/useOptimistic"
|
|
},
|
|
{
|
|
"title": "useReducer",
|
|
"path": "/reference/react/useReducer"
|
|
},
|
|
{
|
|
"title": "useRef",
|
|
"path": "/reference/react/useRef"
|
|
},
|
|
{
|
|
"title": "useState",
|
|
"path": "/reference/react/useState"
|
|
},
|
|
{
|
|
"title": "useSyncExternalStore",
|
|
"path": "/reference/react/useSyncExternalStore"
|
|
},
|
|
{
|
|
"title": "useTransition",
|
|
"path": "/reference/react/useTransition"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Components",
|
|
"path": "/reference/react/components",
|
|
"routes": [
|
|
{
|
|
"title": "<Fragment> (<>)",
|
|
"path": "/reference/react/Fragment"
|
|
},
|
|
{
|
|
"title": "<Profiler>",
|
|
"path": "/reference/react/Profiler"
|
|
},
|
|
{
|
|
"title": "<StrictMode>",
|
|
"path": "/reference/react/StrictMode"
|
|
},
|
|
{
|
|
"title": "<Suspense>",
|
|
"path": "/reference/react/Suspense"
|
|
},
|
|
{
|
|
"title": "<Activity>",
|
|
"path": "/reference/react/Activity",
|
|
"version": "canary"
|
|
},
|
|
{
|
|
"title": "<ViewTransition>",
|
|
"path": "/reference/react/ViewTransition",
|
|
"version": "experimental"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "APIs",
|
|
"path": "/reference/react/apis",
|
|
"routes": [
|
|
{
|
|
"title": "act",
|
|
"path": "/reference/react/act"
|
|
},
|
|
{
|
|
"title": "cache",
|
|
"path": "/reference/react/cache"
|
|
},
|
|
{
|
|
"title": "captureOwnerStack",
|
|
"path": "/reference/react/captureOwnerStack"
|
|
},
|
|
{
|
|
"title": "createContext",
|
|
"path": "/reference/react/createContext"
|
|
},
|
|
{
|
|
"title": "lazy",
|
|
"path": "/reference/react/lazy"
|
|
},
|
|
{
|
|
"title": "memo",
|
|
"path": "/reference/react/memo"
|
|
},
|
|
{
|
|
"title": "startTransition",
|
|
"path": "/reference/react/startTransition"
|
|
},
|
|
{
|
|
"title": "use",
|
|
"path": "/reference/react/use"
|
|
},
|
|
{
|
|
"title": "experimental_taintObjectReference",
|
|
"path": "/reference/react/experimental_taintObjectReference",
|
|
"version": "experimental"
|
|
},
|
|
{
|
|
"title": "experimental_taintUniqueValue",
|
|
"path": "/reference/react/experimental_taintUniqueValue",
|
|
"version": "experimental"
|
|
},
|
|
{
|
|
"title": "unstable_addTransitionType",
|
|
"path": "/reference/react/addTransitionType",
|
|
"version": "experimental"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"hasSectionHeader": true,
|
|
"sectionHeader": "react-dom@{{version}}"
|
|
},
|
|
{
|
|
"title": "Hooks",
|
|
"path": "/reference/react-dom/hooks",
|
|
"routes": [
|
|
{
|
|
"title": "useFormStatus",
|
|
"path": "/reference/react-dom/hooks/useFormStatus"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Components",
|
|
"path": "/reference/react-dom/components",
|
|
"routes": [
|
|
{
|
|
"title": "Common (e.g. <div>)",
|
|
"path": "/reference/react-dom/components/common"
|
|
},
|
|
{
|
|
"title": "<form>",
|
|
"path": "/reference/react-dom/components/form"
|
|
},
|
|
{
|
|
"title": "<input>",
|
|
"path": "/reference/react-dom/components/input"
|
|
},
|
|
{
|
|
"title": "<option>",
|
|
"path": "/reference/react-dom/components/option"
|
|
},
|
|
{
|
|
"title": "<progress>",
|
|
"path": "/reference/react-dom/components/progress"
|
|
},
|
|
{
|
|
"title": "<select>",
|
|
"path": "/reference/react-dom/components/select"
|
|
},
|
|
{
|
|
"title": "<textarea>",
|
|
"path": "/reference/react-dom/components/textarea"
|
|
},
|
|
{
|
|
"title": "<link>",
|
|
"path": "/reference/react-dom/components/link"
|
|
},
|
|
{
|
|
"title": "<meta>",
|
|
"path": "/reference/react-dom/components/meta"
|
|
},
|
|
{
|
|
"title": "<script>",
|
|
"path": "/reference/react-dom/components/script"
|
|
},
|
|
{
|
|
"title": "<style>",
|
|
"path": "/reference/react-dom/components/style"
|
|
},
|
|
{
|
|
"title": "<title>",
|
|
"path": "/reference/react-dom/components/title"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "APIs",
|
|
"path": "/reference/react-dom",
|
|
"routes": [
|
|
{
|
|
"title": "createPortal",
|
|
"path": "/reference/react-dom/createPortal"
|
|
},
|
|
{
|
|
"title": "flushSync",
|
|
"path": "/reference/react-dom/flushSync"
|
|
},
|
|
{
|
|
"title": "preconnect",
|
|
"path": "/reference/react-dom/preconnect"
|
|
},
|
|
{
|
|
"title": "prefetchDNS",
|
|
"path": "/reference/react-dom/prefetchDNS"
|
|
},
|
|
{
|
|
"title": "preinit",
|
|
"path": "/reference/react-dom/preinit"
|
|
},
|
|
{
|
|
"title": "preinitModule",
|
|
"path": "/reference/react-dom/preinitModule"
|
|
},
|
|
{
|
|
"title": "preload",
|
|
"path": "/reference/react-dom/preload"
|
|
},
|
|
{
|
|
"title": "preloadModule",
|
|
"path": "/reference/react-dom/preloadModule"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Client APIs",
|
|
"path": "/reference/react-dom/client",
|
|
"routes": [
|
|
{
|
|
"title": "createRoot",
|
|
"path": "/reference/react-dom/client/createRoot"
|
|
},
|
|
{
|
|
"title": "hydrateRoot",
|
|
"path": "/reference/react-dom/client/hydrateRoot"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Server APIs",
|
|
"path": "/reference/react-dom/server",
|
|
"routes": [
|
|
{
|
|
"title": "renderToPipeableStream",
|
|
"path": "/reference/react-dom/server/renderToPipeableStream"
|
|
},
|
|
{
|
|
"title": "renderToReadableStream",
|
|
"path": "/reference/react-dom/server/renderToReadableStream"
|
|
},
|
|
{
|
|
"title": "renderToStaticMarkup",
|
|
"path": "/reference/react-dom/server/renderToStaticMarkup"
|
|
},
|
|
{
|
|
"title": "renderToString",
|
|
"path": "/reference/react-dom/server/renderToString"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Static APIs",
|
|
"path": "/reference/react-dom/static",
|
|
"routes": [
|
|
{
|
|
"title": "prerender",
|
|
"path": "/reference/react-dom/static/prerender"
|
|
},
|
|
{
|
|
"title": "prerenderToNodeStream",
|
|
"path": "/reference/react-dom/static/prerenderToNodeStream"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"hasSectionHeader": true,
|
|
"sectionHeader": "React Compiler"
|
|
},
|
|
{
|
|
"title": "Configuration",
|
|
"path": "/reference/react-compiler/configuration",
|
|
"routes": [
|
|
{
|
|
"title": "compilationMode",
|
|
"path": "/reference/react-compiler/compilationMode"
|
|
},
|
|
{
|
|
"title": "gating",
|
|
"path": "/reference/react-compiler/gating"
|
|
},
|
|
{
|
|
"title": "logger",
|
|
"path": "/reference/react-compiler/logger"
|
|
},
|
|
{
|
|
"title": "panicThreshold",
|
|
"path": "/reference/react-compiler/panicThreshold"
|
|
},
|
|
{
|
|
"title": "target",
|
|
"path": "/reference/react-compiler/target"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Directives",
|
|
"path": "/reference/react-compiler/directives",
|
|
"routes": [
|
|
{
|
|
"title": "\"use memo\"",
|
|
"path": "/reference/react-compiler/directives/use-memo"
|
|
},
|
|
{
|
|
"title": "\"use no memo\"",
|
|
"path": "/reference/react-compiler/directives/use-no-memo"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Compiling Libraries",
|
|
"path": "/reference/react-compiler/compiling-libraries"
|
|
},
|
|
{
|
|
"hasSectionHeader": true,
|
|
"sectionHeader": "Rules of React"
|
|
},
|
|
{
|
|
"title": "Overview",
|
|
"path": "/reference/rules",
|
|
"routes": [
|
|
{
|
|
"title": "Components and Hooks must be pure",
|
|
"path": "/reference/rules/components-and-hooks-must-be-pure"
|
|
},
|
|
{
|
|
"title": "React calls Components and Hooks",
|
|
"path": "/reference/rules/react-calls-components-and-hooks"
|
|
},
|
|
{
|
|
"title": "Rules of Hooks",
|
|
"path": "/reference/rules/rules-of-hooks"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"hasSectionHeader": true,
|
|
"sectionHeader": "React Server Components"
|
|
},
|
|
{
|
|
"title": "Server Components",
|
|
"path": "/reference/rsc/server-components"
|
|
},
|
|
{
|
|
"title": "Server Functions",
|
|
"path": "/reference/rsc/server-functions"
|
|
},
|
|
{
|
|
"title": "Directives",
|
|
"path": "/reference/rsc/directives",
|
|
"routes": [
|
|
{
|
|
"title": "'use client'",
|
|
"path": "/reference/rsc/use-client"
|
|
},
|
|
{
|
|
"title": "'use server'",
|
|
"path": "/reference/rsc/use-server"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"hasSectionHeader": true,
|
|
"sectionHeader": "Legacy APIs"
|
|
},
|
|
{
|
|
"title": "Legacy React APIs",
|
|
"path": "/reference/react/legacy",
|
|
"routes": [
|
|
{
|
|
"title": "Children",
|
|
"path": "/reference/react/Children"
|
|
},
|
|
{
|
|
"title": "cloneElement",
|
|
"path": "/reference/react/cloneElement"
|
|
},
|
|
{
|
|
"title": "Component",
|
|
"path": "/reference/react/Component"
|
|
},
|
|
{
|
|
"title": "createElement",
|
|
"path": "/reference/react/createElement"
|
|
},
|
|
{
|
|
"title": "createRef",
|
|
"path": "/reference/react/createRef"
|
|
},
|
|
{
|
|
"title": "forwardRef",
|
|
"path": "/reference/react/forwardRef"
|
|
},
|
|
{
|
|
"title": "isValidElement",
|
|
"path": "/reference/react/isValidElement"
|
|
},
|
|
{
|
|
"title": "PureComponent",
|
|
"path": "/reference/react/PureComponent"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|