astro/examples/framework-preact
Nate Moore 42a6ceb587
Fix changesets action (#576)
* chore: move examples to `@example/`, normalize `package.json`

* chore: update lockfile

* chore: add empty changeset
2021-06-29 11:05:33 -05:00
..
src Restructure examples (#568) 2021-06-28 10:46:10 -05:00
.gitignore Restructure examples (#568) 2021-06-28 10:46:10 -05:00
.npmrc Restructure examples (#568) 2021-06-28 10:46:10 -05:00
package.json Fix changesets action (#576) 2021-06-29 11:05:33 -05:00
README.md Restructure examples (#568) 2021-06-28 10:46:10 -05:00

Using Preact with Astro

This example showcases Astro's built-in support for Preact.

No configuration is needed to enable Preact support—just start writing Preact components in src/components.

Note

: If used, components must include the JSX factory (ex. import { h } from "preact"). Astro is unable to determine which framework is used without having the JSX factory in scope.