@a-morphous/wanderer-plugin-preact
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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>`
}

/@a-morphous/wanderer-plugin-preact/

    Package Sidebar

    Install

    npm i @a-morphous/wanderer-plugin-preact

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    126 kB

    Total Files

    7

    Last publish

    Collaborators

    • amorphous