1.0.0 • Published 1 month ago

@a-morphous/wanderer-plugin-preact v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

Wanderer Preact plugin

Make pages on your Wanderer website using JSX!

Usage

Install the plugin, then add it to your site's config.toml. Make sure that htm and preact were also installed!

Now you can add pages using the .mjs extension that export by default a Preact component:

import { html } from "htm/preact"

export default Page = (props: PageProps) => {
	return html`<h1>Hello World!</h1>`
}
1.0.0

1 month ago