Skip to content

Commit

Permalink
docs: useOutlet
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Sep 28, 2023
1 parent 80c7a38 commit b738ea9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/hooks/use-outlet.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
title: useOutlet
toc: false
---

# `useOutlet`

<docs-info>This hook is simply a re-export of [React Router's `useOutlet`][rr-useoutlet].</docs-info>
Returns the element for the child route at this level of the route hierarchy. This hook is used internally by [`<Outlet>`][outlet] to render child routes.

[rr-useoutlet]: https://reactrouter.com/hooks/use-outlet
```tsx
import { useOutlet } from "@remix-run/react";
```

[outlet]: ../components/outlet

0 comments on commit b738ea9

Please sign in to comment.