1.1.3 • Published 2 years ago

suunta-core v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-test

2 years ago