<Link />

This react component provides you with a declarative way to use client-side routing, creating an accessible anchor link (<a>).

<Link to="/home">Home</Link>

to: string

A string representation of the URL you want to navigate to. Leave it empty to navigate to the same page.

<Link to="/search?sort=date">Home</Link>

state: object

State to add to the history object.

<Link to="/home" state={{ from: "internalLink" }}>
Home
</Link>

replace: boolean

When true, this will override the current entry in the browser history rather than creating a new one.

<Link to="/home" replace>
Home
</Link>