Created
February 6, 2020 08:30
-
-
Save tjunghans/5fba3e04b45552f95f9605efb899e2cb to your computer and use it in GitHub Desktop.
External Preact Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function ExternalLink({ | |
href, | |
children | |
}: { | |
href: string; | |
children?: ComponentChildren; | |
}) { | |
return ( | |
<a href={href} target="_blank" rel="noopener noreferrer"> | |
{children || href} | |
</a> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment