参考文档 ↗
返回指定路由的解析后的 URL 路径。
const h = href("/:lang?/about", { lang: "en" }) // -> `/en/about` <Link to={href("/products/:id", { id: "abc123" })} />