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
Copy file name to clipboardExpand all lines: src/content/reference/react/index.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,6 @@ This section provides detailed reference documentation for working with React. F
10
10
11
11
The React reference documentation is broken down into functional subsections:
12
12
13
-
## Rules of React {/*rules-of-react*/}
14
-
15
-
React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:
16
-
17
-
*[Components and Hooks must be pure](/reference/rules/components-and-hooks-must-be-pure) – Purity makes your code easier to understand, debug, and allows React to automatically optimize your components and hooks correctly.
18
-
*[React calls Components and Hooks](/reference/rules/react-calls-components-and-hooks) – React is responsible for rendering components and hooks when necessary to optimize the user experience.
19
-
*[Rules of Hooks](/reference/rules/rules-of-hooks) – Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called.
20
-
21
13
## React {/*react*/}
22
14
23
15
Programmatic React features:
@@ -37,6 +29,14 @@ React-dom contains features that are only supported for web applications (which
37
29
*[Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser).
38
30
*[Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server.
39
31
32
+
## Rules of React {/*rules-of-react*/}
33
+
34
+
React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:
35
+
36
+
*[Components and Hooks must be pure](/reference/rules/components-and-hooks-must-be-pure) – Purity makes your code easier to understand, debug, and allows React to automatically optimize your components and hooks correctly.
37
+
*[React calls Components and Hooks](/reference/rules/react-calls-components-and-hooks) – React is responsible for rendering components and hooks when necessary to optimize the user experience.
38
+
*[Rules of Hooks](/reference/rules/rules-of-hooks) – Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called.
39
+
40
40
## Legacy APIs {/*legacy-apis*/}
41
41
42
42
*[Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code.
0 commit comments