mirror of
https://github.com/withastro/astro.git
synced 2025-03-03 22:57:08 -05:00
13 lines
770 B
Markdown
13 lines
770 B
Markdown
# Astro + Preact Example
|
|
|
|
```sh
|
|
npm create astro@latest -- --template framework-preact
|
|
```
|
|
|
|
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/framework-preact)
|
|
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/framework-preact)
|
|
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/framework-preact/devcontainer.json)
|
|
|
|
This example showcases Astro working with [Preact](https://preactjs.com).
|
|
|
|
Write your Preact components as `.jsx` or `.tsx` files in your project.
|