Reference Documentation ↗
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" })} />