0.1.1 • Published 5 years ago

@aoeu/external-link v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@aoeu/external-link

yarn add @aoeu/external-link

This component renders an anchor (a) tag that is designed to safely open the target href attribute in a new window/tab. It does so by adding the target="_blank" and rel="noreferrer" attributes.

For example:

<ExternalLink url="https://theartofeducation.edu">aoeu.edu</ExternalLink>

Will generate:

<a href="https://theartofeducation.edu" target="_blank" rel="noreferrer">aoeu.edu</a>