Link Component
Import the Link component and use it as a drop-in replacement for links.
---
import Link from "astro-typesafe-routes/link";
---
<Link to="/blog/[id]" params={{ id: "4" }}>Blog post</Link>
Import the Link component and use it as a drop-in replacement for links.
---
import Link from "astro-typesafe-routes/link";
---
<Link to="/blog/[id]" params={{ id: "4" }}>Blog post</Link>