diff --git a/docs/start/framework/routing.md b/docs/start/framework/routing.md index 80f94d042b..218e7fb3a3 100644 --- a/docs/start/framework/routing.md +++ b/docs/start/framework/routing.md @@ -49,7 +49,18 @@ export default [ ] satisfies RouteConfig; ``` -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] +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 { flatRoutes } from "@react-router/fs-routes"; + +export default = [ + route("/", "./home.tsx"), + + ...await flatRoutes(), +] satisfies RouteConfig; +``` ## Route Modules