A minimalistic svelte router component
- Just copy/paste the Router.svelte
- Use it as demonstrated in example code
- Hash based one level routing
- Passing one parameter per route via
#/someroute/:id
- No dependencies
- Less than 50 lines of Svelte code
- Everything is contained in one small copyable file (no npm required)
This is basically a more minimal version of ItalyPaleAle/svelte-spa-router, which I used so far.