You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to [Hooks](/reference/react)and[Components](/reference/react/components), the `react`package exports a few other APIs that are useful for defining components. This page lists all the remaining modern React APIs.
10
+
除了 [Hooks](/reference/react)和[Components](/reference/react/components) 之外,`react`包还导出了一些其他的 API,这些 API 对于创建组件非常有用。本页面将介绍这些剩余的 React API。
8
11
9
12
</Intro>
10
13
11
14
---
12
15
13
-
*[`createContext`](/reference/react/createContext)lets you define and provide context to the child components. Used with [`useContext`.](/reference/react/useContext)
14
-
*[`forwardRef`](/reference/react/forwardRef)lets your component expose a DOM node as a ref to the parent. Used with [`useRef`.](/reference/react/useRef)
15
-
*[`lazy`](/reference/react/lazy)lets you defer loading a component's code until it's rendered for the first time.
16
-
*[`memo`](/reference/react/memo)lets your component skip re-renders with same props. Used with [`useMemo`](/reference/react/useMemo)and[`useCallback`.](/reference/react/useCallback)
17
-
*[`startTransition`](/reference/react/startTransition)lets you mark a state update as non-urgent. Similar to [`useTransition`.](/reference/react/useTransition)
0 commit comments