Skip to content

Commit 6800aa4

Browse files
BrianT1414timdorr
andauthored
Add import statement to useOutletContext example (#8667)
Co-authored-by: Tim Dorr <[email protected]>
1 parent 1d838e4 commit 6800aa4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- Ajayff4
33
- awreese
44
- bhbs
5+
- BrianT1414
56
- brockross
67
- chaance
78
- chasinhues

docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ If you're using TypeScript, we recommend the parent component provide a custom h
646646
```tsx filename=src/routes/dashboard.tsx lines=[12,17-19]
647647
import * as React from "react";
648648
import type { User } from "./types";
649+
import { Outlet, useOutletContext } from "react-router-dom";
649650

650651
type ContextType = { user: User | null };
651652

0 commit comments

Comments
 (0)