This have two benefits, inferring data from the route means you can straight up pass it to a component directly.
The other benefit is when you're creating a link and need to pass it params, you get
<a
href={routes.user({userId: "2").href}link</a>
And programatically redirecting would also be supported with types
What is the feature you are proposing?
Routes could look like this:
This have two benefits, inferring data from the route means you can straight up pass it to a component directly. The other benefit is when you're creating a link and need to pass it params, you get
And programatically redirecting would also be supported with types