Why is Link.to
typed as string?
#32
Answered
by
zoontek
1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP
asked this question in
Q&A
-
It's very easy to accidentally misuse when coming from react-router and typing |
Beta Was this translation helpful? Give feedback.
Answered by
zoontek
Dec 9, 2022
Replies: 1 comment
-
For external links and because it can be quite hard to type Link props on user side (if you want to implement your own Link component using Just use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zoontek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For external links and because it can be quite hard to type Link props on user side (if you want to implement your own Link component using
useLinkProps
Just use
<Link to={Router.YourRouteName()}>