Returns a resolved URL path for the specified route.
const h = href("/:lang?/about", { lang: "en" })// -> `/en/about`<Link to={href("/products/:id", { id: "abc123" })} /> Copy
const h = href("/:lang?/about", { lang: "en" })// -> `/en/about`<Link to={href("/products/:id", { id: "abc123" })} />
Rest
Returns a resolved URL path for the specified route.