Skip to Content
Examples

Examples

React (Vite)

A client-only app: storage, cookies and cross-tab sync. Source 

Two tabs of the React example staying in sync

Next.js (App Router)

Server rendering: cookies on the first paint, server components, a route handler, and localStorage. Source 

The Next.js example: the theme cookie is server-rendered, so reloading never flashes

Run them

git clone https://github.com/iamsomraj/parsistent.git cd parsistent/examples/nextjs # or examples/react-vite npm install npm run dev
Last updated on