Skip to content

Commit d6a4596

Browse files
committed
docs: capitalize Custom Hook references
1 parent 341c312 commit d6a4596

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/reference/react/useTransition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ For common use cases, React provides built-in abstractions such as:
312312
- [`<form>` actions](/reference/react-dom/components/form)
313313
- [Server Functions](/reference/rsc/server-functions)
314314

315-
These solutions handle request ordering for you. When using Transitions to build your own custom hooks or libraries that manage async state transitions, you have greater control over the request ordering, but you must handle it yourself.
315+
These solutions handle request ordering for you. When using Transitions to build your own custom Hooks or libraries that manage async state transitions, you have greater control over the request ordering, but you must handle it yourself.
316316

317317
<Solution />
318318

src/content/reference/rules/components-and-hooks-must-be-pure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function useIconStyle(icon) {
291291
}
292292
```
293293

294-
One important principle in React is _local reasoning_: the ability to understand what a component or hook does by looking at its code in isolation. Hooks should be treated like "black boxes" when they are called. For example, a custom hook might have used its arguments as dependencies to memoize values inside it:
294+
One important principle in React is _local reasoning_: the ability to understand what a component or hook does by looking at its code in isolation. Hooks should be treated like "black boxes" when they are called. For example, a custom Hook might have used its arguments as dependencies to memoize values inside it:
295295

296296
```js {4}
297297
function useIconStyle(icon) {
@@ -307,7 +307,7 @@ function useIconStyle(icon) {
307307
}
308308
```
309309

310-
If you were to mutate the Hook's arguments, the custom hook's memoization will become incorrect, so it's important to avoid doing that.
310+
If you were to mutate the Hook's arguments, the custom Hook's memoization will become incorrect, so it's important to avoid doing that.
311311

312312
```js {4}
313313
style = useIconStyle(icon); // `style` is memoized based on `icon`

0 commit comments

Comments
 (0)