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

Function PostComponent

examples/solid/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 class="space-y-2">
123 <h4 class="text-xl font-bold">{post().title}</h4>
124 <hr class="opacity-20" />
125 <div class="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