@marvinh/preact-router
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

Preact Simple Router

A simple router for preact.

Installation

# npm
npm install --save @marvinh/preact-router

# yarn
yarn add @marvinh/preact-router

Usage

// TODO

import { h } from "preact";
import { Link } from "@marvinh/preact-router";

export default function App() {
  return (
    <div>
      <Link
        href="/blog/my-first-post"
        class="my-link"
        activeClass="my-active-link"
      >
        My First Blog Post
      </Link>
    </div>
  );
}

License

MIT, see License file.

Readme

Keywords

none

Package Sidebar

Install

npm i @marvinh/preact-router

Weekly Downloads

0

Version

0.0.10

License

MIT

Unpacked Size

262 kB

Total Files

48

Last publish

Collaborators

  • marvinhagemeister