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

0.1.6 • 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';

Keywords

none

Install

npm i @eventstore-ui/router

DownloadsWeekly Downloads

158

Version

0.1.6

License

Apache-2.0

Unpacked Size

74.6 kB

Total Files

52

Last publish

Collaborators

  • hayleycampbell
  • georgepayne
  • ylorph-eventstore