Skip to content

Commit 8de4a3f

Browse files
authored
Fix docs/hooks/use-outlet-context.md green lines (#9478)
1 parent 11afb58 commit 8de4a3f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,4 @@
131131
- xavier-lc
132132
- xcsnowcity
133133
- yuleicul
134+
- lopezac

docs/hooks/use-outlet-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Parent() {
2424
}
2525
```
2626

27-
```tsx lines=[2]
27+
```tsx lines=[4]
2828
import { useOutletContext } from "react-router-dom";
2929

3030
function Child() {
@@ -36,7 +36,7 @@ function Child() {
3636

3737
If you're using TypeScript, we recommend the parent component provide a custom hook for accessing the context value. This makes it easier for consumers to get nice typings, control consumers, and know who's consuming the context value. Here's a more realistic example:
3838

39-
```tsx filename=src/routes/dashboard.tsx lines=[12,17-19]
39+
```tsx filename=src/routes/dashboard.tsx lines=[13, 19]
4040
import * as React from "react";
4141
import type { User } from "./types";
4242
import { Outlet, useOutletContext } from "react-router-dom";

0 commit comments

Comments
 (0)