UNPKG

react-secure-link

Version:

A TypeScript compatible, zero dependency React component to avoid security exploits when opening a link in a new tab.

5 lines (4 loc) 197 B
import { ReactElement } from "react"; type SecureLinkProps = Omit<JSX.IntrinsicElements["a"], "target">; export declare function SecureLink({ ...props }: SecureLinkProps): ReactElement; export {};