The Astro with Preact Framework template deploys a new application based on Astro working with Preact, a lightweight alternative to React that offers the same modern API with a smaller bundle size. This template combines Astro's static site generation capabilities with Preact's efficient component system.

ItemDetails
RepositoryAzion Samples
FrameworkAstro
Use CaseGeneral
Astro with Preact

About this template

This template is built with Astro and comes with the Preact integration preconfigured. Preact offers the familiar React component model and hooks API in a much smaller package, which pairs naturally with Astro’s islands for adding interactivity without heavy bundles. Deployed on Azion, it’s served via a distributed architecture for fast, globally distributed delivery.

Key features

  • Preact integration ready to use with no extra setup
  • React-compatible API and hooks with a significantly smaller footprint
  • Interactive Preact islands that hydrate only where they’re needed
  • Edge-optimized delivery through Azion for low-latency access worldwide