Skip to content

Commit b9c05f0

Browse files
committed
Update docs
1 parent 42aa82c commit b9c05f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api/components/AbsoluteRoutes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Dashboard() {
3838

3939
[modes: framework, data, declarative]
4040

41-
Nested [Route](../components/Route) elements
41+
Nested [Route](../components/Route) elements using absolute paths
4242

4343
### location
4444

docs/api/hooks/useAbsoluteRoutes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: useAbsoluteRoutes
1010

1111
[Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.useAbsoluteRoutes.html)
1212

13-
An alternate version of [useRoutes](./useRoutes) that expects absolute paths on routes instead of relative paths. This is mostly intended to be used as a tool to help migrate from v5 where absolute paths were a common pattern, or for when you want to define your paths in a separate data structure using absolute paths.
13+
An alternate version of [useRoutes](./useRoutes) that expects absolute paths on routes instead of relative paths. This is mostly intended to be used as a tool to help migrate from v5 where absolute paths were a common pattern, or for when you want to define your paths in a separate data structure using absolute paths. This hook expects absolute paths both when used at the top level of your application, or within a set of descendant routes inside a splat route.
1414

1515
The return value of `useAbsoluteRoutes` is either a valid React element you can use to render the route tree, or `null` if nothing matched.
1616

@@ -69,7 +69,7 @@ useAbsoluteRoutes(routes, locationArg): undefined
6969

7070
[modes: framework, data, declarative]
7171

72-
Your routes to use to render this location
72+
Your routes to use to render this location, defined using absolute paths
7373

7474
### locationArg
7575

0 commit comments

Comments
 (0)