Skip to content

StoresynkProductProps

Defined in: @storesynk/react/dist/components/StoresynkProduct.d.ts:12

The host for a prepared render (renderProduct() in your loader): payload script + server-filled markup injected as one innerHTML string, so React never diffs the subtree the Storesynk engine mutates - both the server render and the hydration render paint the same prepared bytes, and the client runtime adopts the payload without re-fetching.

For a client-only product (no server data), author the raw tags inside instead.

optional className?: string

Defined in: @storesynk/react/dist/components/StoresynkProduct.d.ts:17

Forwarded to the host (layout classes live there).


prepared: PreparedProduct | null | undefined

Defined in: @storesynk/react/dist/components/StoresynkProduct.d.ts:15

Server-prepared render, from renderProduct() in your loader. Null-safe (renders nothing) so a failed loader degrades cleanly.