Skip to content

Commit f55d948

Browse files
authored
Reorder rules of react summary in reference index (#6698)
Small change to match the sidebar order.
1 parent 0dc1b31 commit f55d948

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/content/reference/react/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ This section provides detailed reference documentation for working with React. F
1010

1111
The React reference documentation is broken down into functional subsections:
1212

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-
2113
## React {/*react*/}
2214

2315
Programmatic React features:
@@ -37,6 +29,14 @@ React-dom contains features that are only supported for web applications (which
3729
* [Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser).
3830
* [Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server.
3931

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+
4040
## Legacy APIs {/*legacy-apis*/}
4141

4242
* [Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code.

0 commit comments

Comments
 (0)