interface LinkProps {
/**
* @param to the href for a the underlying
* anchor tage
*/
to: string;
/**
* The content you want to render as the children
* of the link
*/
children: string | React.ReactNode | React.ReactNode[];
}
<>
<Link to="#">Visiting nothing</Link>
<Link to="#"><span>Passing react children</span></Link>
</>
Rendered output