1.1.3 • Published 6 months ago

suunta-core v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Suunta Core

A core package for the Suunta router library. Does not include any dependencies and requires a renderer to be setup.

For a batteries included version, use suunta

Usage

Install Suunta Core

npm install suunta-core

Setup a custom renderer

import { render, html } from "lit-html";

export function litRenderer(viewToRender, route, renderTarget) {
    render(html`${viewToRender}`, renderTarget);
}

Enable the renderer with Suunta core

const routerOptions: SuuntaInitOptions = {
    routes,
    target: "#outlet",
    renderer: litRenderer
};

router = new Suunta(routerOptions);
return router;
1.1.3

6 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago

1.0.0-test

12 months ago