Basic Client Side Setup

A simple example using:

<Router />

In default history mode, with a nested Router (Blog.svelte).

<Route />

Using params, wildcards and a default Route.

Using relative links.

useNavigate()

For programmatic navigation back and forward through the history stack.

Try it out

git clone https://github.com/mefechoel/svelte-navigator.git
cd svelte-navigator/example/basic-client-side
npm install # if you're using yarn run 'yarn install'
npm start # 'yarn start'
# open browser at 'http://localhost:6060'

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes