State saved in localStorage that is safe to server-render, syncs across tabs and components, ignores unreadable values and works when storage is blocked.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-local-storage-state.json"