Chapter 2: Rendering Options in Astro: Building a Layout
In the previous tutorial, we looked at the basics of Astro: its folder structure, how components work, and how styling works.
This tutorial will focus on layouts and the various rendering options available at our disposal with Astro. Rendering plays a critical part in any web application, since its goal is to display the final output to the end user. With Astro, we have the flexibility to choose between two primary rendering modes: static site generation (SSG) and server-side rendering (SSR). The former is ideal for generating highly optimized, pre-built HTML during the build process, resulting in lightning-fast load times and SEO-friendly websites. The latter enables dynamic content generation ...
Get Unleashing the Power of Astro now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.