Is there a <RouterLink> (vue-router) equivalent or I just use <a>? #88
-
Hi there, previous Vue developer here. In vue-router we have a <RouterLink> element that the library provides to render a hyperlink element on the page. It's rendered as an <a> element on the page but preventDefault()-ed so it won't trigger page re-render. I'm wondering what's the official recommended paradigm for Svelte5 Router to handle on-page redirection element? I can think of 3 different approaches, just wondering which one is more "official recommended":
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Absolutely! I just realized I didn't add documentation my bad 🤦 Check out https://github.com/mateothegreat/svelte5-router/blob/main/docs/actions.md. Hollar if ya have any more questions!
|
Beta Was this translation helpful? Give feedback.
-
Understood, thank you! |
Beta Was this translation helpful? Give feedback.
Absolutely!
I just realized I didn't add documentation my bad 🤦
Check out https://github.com/mateothegreat/svelte5-router/blob/main/docs/actions.md.
Hollar if ya have any more questions!