Back

Hello Astro: Getting Started with Modern Static Sites | Shardul Kavar

1 min read
Astro framework logo and stylized space background

Hello Astro: Getting Started with Modern Static Sites

Welcome to my first post on this blog! In this article, we’ll explore why Astro has become one of the most popular web frameworks for content-driven sites like blogs, documentation, and portfolios.

Why Astro?

---
// Component Script (Server-only)
const greeting = "Hello, World!";
---
<!-- Component Template -->
<div>
  <h1>{greeting}</h1>
</div>

Island Architecture

Astro pioneered Component Islands (Astro Islands). An island is an interactive UI component on an otherwise static page of HTML:

---
import InteractiveCounter from '../components/Counter';
---
<!-- This component hydrates on the client when visible -->
<InteractiveCounter client:visible />

What’s Next?

Stay tuned for upcoming deep dives into custom themes, SEO optimization, and automated scheduled publishing workflows!