You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/start/framework/route-module.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -42,25 +42,25 @@ export default function MyRouteComponent() {
42
42
43
43
### Props passed to the Component
44
44
45
-
When the component is rendered, it is provided the props defined in `Route.ComponentProps` that React Router will automatically generate for you. These props include:
45
+
When the component is rendered, it is provided the props defined in `Route.ComponentProps` that React Router will automatically generate for you. These props include:
46
46
47
47
1.`loaderData`: The data returned from the `loader` function in this route module
48
48
2.`actionData`: The data returned from the `action` function in this route module
49
49
3.`params`: An object containing the route parameters (if any).
50
50
4.`matches`: An array of all the matches in the current route tree.
51
51
52
-
You can use these props in place of hooks like `useLoaderData` or `useParams`. This may be preferrable because they will be automatically typed correctly for the route.
52
+
You can use these props in place of hooks like `useLoaderData` or `useParams`. This may be preferrable because they will be automatically typed correctly for the route.
0 commit comments