Skip to main content

govuk-react with Astro

These pages are rendered on the server by Astro, and work before and without JavaScript.

Forms

These forms use Conform. They submit, and show their errors, before and without JavaScript.

Hydration

These pages choose how much JavaScript each component needs.

  • Islands: React hydrates only the components that need it
  • Without React: components enhanced by inline scripts, with no React in the browser
  • Upgrade to React: an inline script enhances a component, then React takes over and keeps what the user did
  • Working together: tabs, an accordion and modals holding forms, in one island, to prove they work together