Web Frameworks / Astro
Rendering and Interactivity
Client directives, server islands, view transitions, adapters, middleware, and actions.
Islands and client directives in Astro
Client directives decide whether a framework component stays static HTML or hydrates in the browser, and when. This page covers framework integrations, the five client directives, what props can cross into an island, sharing state between islands, server islands, and client-side navigation with view transitions.
Server rendering in Astro
Static output is the default, but any route can render on demand once an adapter is installed. This page covers prerendering per route, adapters, request data and cookies, middleware with locals, actions for forms, and typed environment variables.