Astro
A content-focused meta-framework that ships zero JavaScript by default, hydrating only the interactive parts of a page.
17 leçons
Astro
Commencer le coursGetting Started
- What is Astro?What Astro is, its zero-JS-by-default philosophy, and where it fits next to frameworks like Next.js.
- Astro Project StructureThe default folders in an Astro project — pages, components, layouts, and public — and what lives where.
- Creating Your First PageHow a .astro file becomes a route, and the basic anatomy of a page.
Components & Templating
- The .astro Component SyntaxThe frontmatter script block and HTML-like template that make up every .astro component.
- Dynamic HTML and ExpressionsUsing JavaScript expressions, loops, and conditionals inside an Astro template.
- Props and SlotsPassing data into components with props and passing markup into them with slots.
- Styling in AstroScoped style blocks, global styles, and why Astro's default scoping avoids CSS collisions.
Routing & Layouts
Islands Architecture & Interactivity
- Islands Architecture ExplainedWhy Astro ships static HTML by default and hydrates only the interactive pieces you mark.
- Client Directivesclient:load, client:idle, and client:visible — controlling when and whether an island hydrates.
- Using React Components in AstroDropping a React component into an Astro page and hydrating it as an island.
Data & Content