- This example shows how to implement Zustand persist state with Next.js App router
- Fix the hydration error in Next.js
- Online demo: https://next-zustand-starter.vercel.app/
On homepage, click the buttons to change state
Then view the persisted state on /bears
page
npm run dev
# or
yarn dev
View the app at http://localhost:3000