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

1.0.3 • Public • Published

@eventstore-ui/router

Stencil router using only Functional Components.

Install

Add to your project

yarn add @eventstore-ui/router

Also, include the peer dependencies:

yarn add @eventstore-ui/utils

Usage within a stencil project

Initialize the router with your options, in the componentWillLoad of the root component.

import { router } from '@eventstore-ui/router';

@Component({
    tag: 'ui-root',
    styleUrl: 'root.css',
})
export class Root {
    componentWillLoad() {
        router.init({
            titleSuffix: ' - Event Store',
        });
    }
}

Import the functional components directly, and use them within your components:

import { Link } from '@eventstore-ui/router';

Readme

Keywords

none

Package Sidebar

Install

npm i @eventstore-ui/router

Weekly Downloads

65

Version

1.0.3

License

Apache-2.0

Unpacked Size

124 kB

Total Files

52

Last publish

Collaborators

  • hayleycampbell
  • georgepayne
  • ylorph-eventstore