Add href param to ComponentProps for relative, typesafe, routes. #13115
kentcdodds
started this conversation in
Proposals
Replies: 1 comment
-
That would be awesome, relative paths are one of the best parts of RR Links. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's what I did before the
href
utility was introduced:Here's what I do now that we have it:
I like this because it's typesafe. I don't like it because I lost my relative paths.
What if we could do this:
Notice that we get relative back and they can be typesafe.
Beta Was this translation helpful? Give feedback.
All reactions