A simple example using:
<Router />
In default history mode, with a nested Router (Blog.svelte
).
<Route />
Using params, wildcards and a default Route.
<Links />
Using relative links.
useNavigate()
For programmatic navigation back and forward through the history stack.
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'