In this example we will see how to add a router with vaadin router Vaadin router A small, powerful and framework-agnostic client-side router for Web Components npm i @vaadin/router import { html, LitElement } from "lit"; export class Home extends LitElement {
constructor() {
super();
} render() {
return html`<div>
<h1>Home</h1>
</div>`;
}
}
customElements.define("my-home", Home);