Browse Source

Always link to Usage for consistency

main
Dan Abramov 2 years ago
parent
commit
88e689ef16
  1. 2
      beta/src/content/reference/react/useCallback.md
  2. 2
      beta/src/content/reference/react/useContext.md
  3. 2
      beta/src/content/reference/react/useEffect.md
  4. 2
      beta/src/content/reference/react/useInsertionEffect.md
  5. 2
      beta/src/content/reference/react/useMemo.md
  6. 2
      beta/src/content/reference/react/useReducer.md
  7. 2
      beta/src/content/reference/react/useState.md

2
beta/src/content/reference/react/useCallback.md

@ -34,7 +34,7 @@ export default function ProductPage({ productId, referrer, theme }) {
}, [productId, referrer]); }, [productId, referrer]);
``` ```
[See more examples below.](#examples-rerendering) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

2
beta/src/content/reference/react/useContext.md

@ -30,7 +30,7 @@ function MyComponent() {
// ... // ...
``` ```
[See more examples below.](#examples-basic) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

2
beta/src/content/reference/react/useEffect.md

@ -40,7 +40,7 @@ function ChatRoom({ roomId }) {
} }
``` ```
[See more examples below.](#examples-connecting) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

2
beta/src/content/reference/react/useInsertionEffect.md

@ -46,7 +46,7 @@ function useCSS(rule) {
``` ```
[See more examples below.](#examples-connecting) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

2
beta/src/content/reference/react/useMemo.md

@ -34,7 +34,7 @@ function TodoList({ todos, tab }) {
} }
``` ```
[See more examples below.](#examples-recalculation) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

2
beta/src/content/reference/react/useReducer.md

@ -34,7 +34,7 @@ function MyComponent() {
// ... // ...
``` ```
[See more examples below.](#examples-basic) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

2
beta/src/content/reference/react/useState.md

@ -34,7 +34,7 @@ function MyComponent() {
The convention is to name state variables like `[something, setSomething]` using [array destructuring.](https://javascript.info/destructuring-assignment) The convention is to name state variables like `[something, setSomething]` using [array destructuring.](https://javascript.info/destructuring-assignment)
[See more examples below.](#examples-basic) [See more examples below.](#usage)
#### Parameters {/*parameters*/} #### Parameters {/*parameters*/}

Loading…
Cancel
Save