Skip to content

Commit 228b17e

Browse files
committed
chore: format
1 parent 39d73ee commit 228b17e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: docs/start/framework/route-module.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ export default function MyRouteComponent() {
4242

4343
### Props passed to the Component
4444

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:
4646

4747
1. `loaderData`: The data returned from the `loader` function in this route module
4848
2. `actionData`: The data returned from the `action` function in this route module
4949
3. `params`: An object containing the route parameters (if any).
5050
4. `matches`: An array of all the matches in the current route tree.
5151

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.
5353

5454
### Using props
5555

5656
```tsx filename=app/routes/my-route-with-default-params.tsx
57-
import type { Route } from './+types/route-name'
57+
import type { Route } from "./+types/route-name";
5858

59-
export default function MyRouteComponent({
60-
loaderData,
59+
export default function MyRouteComponent({
60+
loaderData,
6161
actionData,
62-
params,
63-
matches
62+
params,
63+
matches,
6464
}: Route.ComponentProps) {
6565
return (
6666
<div>

0 commit comments

Comments
 (0)