import { links } from "https://deno.land/x/snel@v0.7.1/core/router/actions.js";
An action to be added at a root element of your application to capture all relative links and push them onto the history stack.
Example:
<div use:links>
<Router>
<Route path="/" component={Home} />
<Route path="/p/:projectId/:docId?" component={ProjectScreen} />
{#each projects as project}
<a href="/p/{project.id}">{project.title}</a>
{/each}
</Router>
</div>