Welcome
This is an example of @onruntime/next-link
Internal Href →
Input
<Link href="/hello-world"> // ...</Link>
Output
<a href="/hello-world"> // ...</a>
External Href →
Input
<Link href="https://onruntime.com"> // ...</Link>
Output
<a href="https://onruntime.com" target="_blank" rel="noopener noreferrer"> // ...</a>
Undefined Href →
Input
<Link> // ...</Link>
Output (with cursor: default
)
<a> // ...</a>
Undefined Href with onClick →
Input
<Link onClick={() => router.push("/hello-world")}> // ...</Link>
Output
<a> // ...</a>