Astro ships many optimizations out of the box to speed up our site and bring out the maximum from our efforts. However, there are some best practices we need to keep in mind that can elevate the quality of our project even further. In this lesson, we’ll take a look at six different practices that can make sure that we bring out the maximum from our Astro project.

Using layouts for consistency

This point not only applies to Astro projects but to web-based projects in general. Whether we’re building a React application, using Svelte or Astro, make sure to always have a Layout component that can ensure a consistent look and feel across all projects. Even if we have multiple types of pages, the same layout applies at least to our header, footer, and main content.

Get hands-on with 1400+ tech skills courses.