link next js target _blank
// Import the Link component from next
import Link from 'next/link';
// Create a functional component that renders a Link with the target attribute set to "_blank"
const MyComponent = () => (
<Link href="https://example.com" target="_blank">
<a>Visit Example.com</a>
</Link>
);
// Export the component for use in other parts of your Next.js application
export default MyComponent;