Open
Description
Which project does this relate to?
Router
Describe the bug
In this chapter, it says The createFileRoute function takes a single argument, the file-route's path as a string.
, yet the example just above shows the following code:
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute({
component: PostsComponent,
})
Probably that the argument to createFileRoute
has changed, but the example is wrong, or the text is wrong?
The API page for this same function also has conflicting text and examples: https://tanstack.com/router/latest/docs/framework/react/api/router/createFileRouteFunction
Your Example Website or App
https://tanstack.com/router/latest/docs/framework/react/routing/routing-concepts#anatomy-of-a-route
Steps to Reproduce the Bug or Issue
Go to docs, get confused.
Expected behavior
Do not get confused.
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels