Server-Side Rendering
Render a Picked Page on your server so that search engines can read it. Then hydrate the page on the client. This page shows the whole shape. The pages after it cover each part.
The server entry point
The snapshot helpers live in a dedicated entry point. serialize runs on the server.
hydrateFromSnapshot applies a snapshot to a client. You can use it on the server or
in the browser.
import { serialize, hydrateFromSnapshot, registerProjectConfig } from '@picked/client/server'
import type { PickedSnapshot } from '@picked/client/server'Go to Server Snapshot for the serialize() reference. Go to
Rendering and Hydration to connect React and
Svelte. Go to Slots and Placements for how a slot
chooses an experience. If the SDK is new to you, read
Installation first.
Related
- About server-side rendering — why the snapshot exists.
- How to server-render a page
- Server snapshot
