Redux

With vite-plugin-ssr we keep control over our app architecture and how our pages are rendered. This allows us to integrate Redux simply by following its official SSR docs.

The initial state of the store is set on the server (its content is server-side rendered). This initial state is then passed onto the browser for hydration; we can use passToClient for that purpose.

Example:

Edit this page