forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80c7a38
commit b738ea9
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |