Skip to content

StoresynkStaticProps

Defined in: @storesynk/react/dist/components/StoresynkStatic.d.ts:16

Escape hatch for Storesynk markup that needs no server data - the cart drawer (whose engine removes its template child and inserts clones), a client-only product template, predictive search. Children are stringified (renderToStaticMarkup - deterministic, so SSR and hydration paint the same bytes) and injected via dangerouslySetInnerHTML, so React treats the subtree as an opaque string and engine mutations can never conflict with a reconcile. The wrapper div is layout-transparent (display: contents).

Children must be static host elements (plain tags - no client components, no state, no event handlers). NOTE: this component pulls react-dom/server into the client bundle (it re-stringifies at hydration); the prepared-render components don’t.

children: ReactNode

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


optional className?: string

Defined in: @storesynk/react/dist/components/StoresynkStatic.d.ts:18