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

Function PostComponent

examples/solid/basic-non-nested-devtools/src/main.tsx:117–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected