MCPcopy Create free account
hub / github.com/TanStack/router / PostComponent

Function PostComponent

examples/react/basic/src/main.tsx:118–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118function PostComponent() {
119 const post = postRoute.useLoaderData()
120
121 return (
122 <div className="space-y-2">
123 <h4 className="text-xl font-bold">{post.title}</h4>
124 <hr className="opacity-20" />
125 <div className="text-sm">{post.body}</div>
126 </div>
127 )
128}
129
130const pathlessLayoutRoute = createRoute({
131 getParentRoute: () => rootRoute,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected