Skip to content

Commit 4e12473

Browse files
authored
Fix syntax highlighting in docs for useOutletContext (#10708)
1 parent 5b1765f commit 4e12473

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
- koojaa
120120
- KostiantynPopovych
121121
- KutnerUri
122+
- kylegirard
122123
- landisdesign
123124
- latin-1
124125
- lequangdongg

docs/hooks/use-outlet-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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=[13, 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)