Skip to content

Commit

Permalink
rephrase native_router.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 21, 2024
1 parent 5be9196 commit 1dfd140
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions book/src/learn/router/native_router.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Native Router

Even though Freya supports Dioxus Router, it might due to Freya being it's own platform it misses certain integrations that users might expect from routing in an app, like support for back and forward buttons from mouses.
Even though Freya supports Dioxus Router, there are certain integrations that it does not provide, such as as back and forward navigation with the mouse buttons.
For things like this exists `NativeRouter`, a thin wrapper component that adds these missing integrations.

In order to use the native router you simply need to wrap your `Router` content inside the `NativeRouter` component.
You simply need to wrap your `Router` content inside the `NativeRouter` component.

Example (based on the example from [router](../router.md)):
```rs
Expand Down

0 comments on commit 1dfd140

Please sign in to comment.