Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use Svelte with Sapper, which takes care of routing for me. From the FAQ:

> Is there a router?

> You can use any router lib you want. A lot of people use page.js. There's also navaid, which is very similar. If you prefer a declarative HTML approach, there's svero and svelte-routing.

> If you need hash-based routing on the client side, check out svelte-spa-router, or abstract-state-router, a mature router for business software.

> For an official solution, there's nothing that's simply a routing library. There is, however, the official Sapper framework, a Next.js-style application framework built on Svelte, which includes its own filesystem-based routing.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: