Stencil Router

Usage no npm install needed!

<script type="module">
  import stencilRouter from 'https://cdn.skypack.dev/@stencil/router';



Stencil Router

A simple router, inspired by React Router v4, for Stencil apps and vanilla Web Component apps.

  <stencil-route-switch scrollTopOffset={0}>
    <stencil-route url="/" component="landing-page" exact={true} />
    <stencil-route url="/demos" component="demos-page" />
    <stencil-route url="/other" component="other-page" />
    <stencil-route component="page-not-found" />

Included components and all other information can be found in our wiki.