Svelte Summit
Alessandro Segala: So you want to pick a router?

Alessandro Segala: So you want to pick a router?

This was recorded for Svelte Summit 2020: https://www.sveltesummit.com

If you are building a Single-Page App (SPA), you will likely need a router for your app. With the lack of an official router for Svelte 3, there's quite a few options, so which one should you pick?

In this talk, we'll look at the two different kinds of routers (based on the History API or based on the page's hash), how they differ, and when you should pick which. We'll also go through a demo of implementing routing for a Svelte 3 SPA using svelte-spa-router.