Astro Setup

Set up useUrlState in Astro (state-in-url/astro) inside React islands, and keep state in the URL on pages with no client framework at all through encodeState/decodeState in the frontmatter. Covers the searchParams island prop for a matching server render, sharing state between islands, and the replace/push choice with no client router involved. Load this skill when the project is Astro, with React islands, Preact islands (compat), or no client framework at all.

asmyshlyaev177 67bc0cd 7.3 KB Updated

File contents

asmyshlyaev177/state-in-url/tree/main/skills/astro-setup commit 67bc0cd12a

Frequently asked questions

npx skillmds@latest add asmyshlyaev177/astro-setup