Skip to content

Commit b9b7622

Browse files
committed
Fix links, small refinements
1 parent 2700073 commit b9b7622

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

pages/docs/react/latest/hooks-context.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Context provides a way to pass data through the component tree without having to
1313

1414
</Intro>
1515

16+
> **Note:** All the details and rationale on React's context feature can be found in [here](./context).
17+
1618
## Usage
1719

1820
```res

pages/docs/react/latest/hooks-overview.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ This was just a quick example on our first hook usage. We will go into more deta
8585
### Additional Hooks:
8686

8787
- [useReducer](./hooks-reducer): An alternative to `useState`. Uses the state / action / reduce pattern.
88-
- [useCallback](./hooks-callback): Returns a memoized callback
89-
- [useMemo](./hooks-memo): Returns a memoized value
88+
<!-- - [useCallback](./hooks-callback): Returns a memoized callback -->
89+
<!-- - [useMemo](./hooks-memo): Returns a memoized value -->
9090
- [useRef](./hooks-ref): Returns a mutable React-Ref value
91-
- [useImperativeHandle](./hooks-imperative-handle): Customizes the instance value that is exposed to parent components when using `ref`
92-
- [useLayoutEffect](./hooks-layout-effect): Identical to useEffect, but it fires synchronously after all DOM mutations.
91+
<!-- - [useImperativeHandle](./hooks-imperative-handle): Customizes the instance value that is exposed to parent components when using `ref` -->
92+
<!-- - [useLayoutEffect](./hooks-layout-effect): Identical to useEffect, but it fires synchronously after all DOM mutations. -->
9393

9494

9595
## Rules of Hooks

pages/docs/react/latest/hooks-reducer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ An alternative to [useState](./hooks-state). Accepts a reducer of type `(state,
3131

3232
`React.useReducer` is usually preferable to `useState` when you have complex state logic that involves multiple sub-values or when the next state depends on the previous one. `useReducer` also lets you optimize performance for components that trigger deep updates because you can pass dispatch down instead of callbacks.
3333

34-
**Note:** You will notice that the action / reducer pattern works especially well in ReScript due to its [immutable records](/docs/manual/latest/record), [variants](/docs/manual/latest/variant) and [pattern matching](/docs/manual/pattern-matching-destructuring) features for easy expression of your action and state transitions.
34+
**Note:** You will notice that the action / reducer pattern works especially well in ReScript due to its [immutable records](/docs/manual/latest/record), [variants](/docs/manual/latest/variant) and [pattern matching](/docs/manual/latest/pattern-matching-destructuring) features for easy expression of your action and state transitions.
3535

3636
## Examples
3737

pages/docs/react/latest/refs-and-the-dom.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type t<'value> = { mutable current: 'value }
2828

2929
There are a few good use cases for refs:
3030

31+
- Managing state that *should not trigger* any re-render.
3132
- Managing focus, text selection, or media playback.
3233
- Triggering imperative animations.
3334
- Integrating with third-party DOM libraries.

0 commit comments

Comments
 (0)