Skip to content

Commit

Permalink
Add import statement to useOutletContext example (#8667)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Dorr <timdorr@users.noreply.github.com>
  • Loading branch information
BrianT1414 and timdorr committed Feb 18, 2022
1 parent 1d838e4 commit 6800aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -2,6 +2,7 @@
- Ajayff4
- awreese
- bhbs
- BrianT1414
- brockross
- chaance
- chasinhues
Expand Down
1 change: 1 addition & 0 deletions docs/api.md
Expand Up @@ -646,6 +646,7 @@ If you're using TypeScript, we recommend the parent component provide a custom h
```tsx filename=src/routes/dashboard.tsx lines=[12,17-19]
import * as React from "react";
import type { User } from "./types";
import { Outlet, useOutletContext } from "react-router-dom";

type ContextType = { user: User | null };

Expand Down

0 comments on commit 6800aa4

Please sign in to comment.