DEV Community

Caleb Weeks
Caleb Weeks

Posted on • Originally published at sethcalebweeks.com

1

TIL: Astro

On Tuesday, we took a look at Astro at Syracuse JavaScript meetup. Here are some thoughts.

  • Geared towards simple websites, such as blogs, marketing sites, or small e-commerce sites.
  • Has it's own component syntax that builds on JSX for templating. The script portion of the component is defined in a separate front-matter section (---), similar to Svelte or Vue single file components.
  • Markdown posts with front-matter have first class support.
  • Has directory-based routing and layouts.
  • Vue, React, Svelte, and several other libraries can all be used in Astro simultaneously!

In summary, Astro looks like a good option if you want to build a simple website with all the DX of React/Vue/Svelte components. I might look into switching my blog to Astro, since it can also be hosted on Github Pages and looks like conversion almost comes for free.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay