@mcansh/custom-next-link
v0.3.2
Published
A next.js link wrapper that renders a normal anchor tag with `target="_blank"` and `rel="noopener external nofollow noreferrer"` or a next link
Downloads
5
Readme
@mcansh/custom-next-link
A next.js link wrapper that renders a normal anchor tag with target="_blank"
and rel="noopener external nofollow noreferrer"
or a next link
usage
import { LinkProvider, Link } from '@mcansh/custom-next-link';
export default () => (
<LinkProvider value="https://mcan.sh">
<Link href="https://google.com">
<a>Hello World</a>
</Link>
</LinkProvider>
);
//=> <a href="https://google.com" target="_blank" rel="noopener external nofollow noreferrer">Hello World</a>