Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed Jan 21, 2025
1 parent dab5b79 commit 68bb35e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/start/framework/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ export default [
If you prefer to define your routes via file naming conventions rather than configuration, the `@react-router/fs-routes` package provides a [file system routing convention][file-route-conventions]. You can even combine different routing conventions if you like:

```ts filename=app/routes.ts
import { type RouteConfig, route } from "@react-router/dev/routes";
import {
type RouteConfig,
route,
} from "@react-router/dev/routes";
import { flatRoutes } from "@react-router/fs-routes";

export default [
route("/", "./home.tsx"),

...await flatRoutes(),
...(await flatRoutes()),
] satisfies RouteConfig;
```

Expand Down

0 comments on commit 68bb35e

Please sign in to comment.