Skip to content

Commit

Permalink
fix: add note about router features (closes #58) (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Feb 16, 2024
1 parent 0b2d6a9 commit c865f71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/router/16_routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

It’s easy to get started with the router.

First things first, make sure you’ve added the `leptos_router` package to your dependencies.
First things first, make sure you’ve added the `leptos_router` package to your dependencies. Like `leptos`, the router relies on activating a `csr`, `hydrate`, or `ssr` feature. For example, if you’re adding the router to a client-side rendered app, you’ll want to run
```sh
cargo add leptos_router --features=csr
```

> It’s important that the router is a separate package from `leptos` itself. This means that everything in the router can be defined in user-land code. If you want to create your own router, or use no router, you’re completely free to do that!
Expand Down

0 comments on commit c865f71

Please sign in to comment.