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

Function PostComponent

e2e/solid-router/basic/src/main.tsx:145–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143})
144
145function PostComponent() {
146 const post = postRoute.useLoaderData()
147
148 return (
149 <div class="space-y-2">
150 <h4 class="text-xl font-bold">{post().title}</h4>
151 <hr class="opacity-20" />
152 <div class="text-sm">{post().body}</div>
153 </div>
154 )
155}
156
157const layoutRoute = createRoute({
158 getParentRoute: () => rootRoute,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected