From 6800aa4be22aea934ea435bcaefc62ba5b96529c Mon Sep 17 00:00:00 2001 From: BrianT1414 <32641907+BrianT1414@users.noreply.github.com> Date: Thu, 17 Feb 2022 19:38:24 -0600 Subject: [PATCH] Add import statement to useOutletContext example (#8667) Co-authored-by: Tim Dorr --- contributors.yml | 1 + docs/api.md | 1 + 2 files changed, 2 insertions(+) diff --git a/contributors.yml b/contributors.yml index 099a6ca58a..dae0398f6d 100644 --- a/contributors.yml +++ b/contributors.yml @@ -2,6 +2,7 @@ - Ajayff4 - awreese - bhbs +- BrianT1414 - brockross - chaance - chasinhues diff --git a/docs/api.md b/docs/api.md index f01d1144f0..a55824b907 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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 };