Rules
react/no-unsafe-target-blank

react/no-unsafe-target-blank

Rule category

Security.

What it does

Prevents the use of target="_blank" without rel="noreferrer noopener".

Examples

Failing

<a href="https://example.com" target="_blank">Example</a>;

Passing

<a href="https://example.com" target="_blank" rel="noreferrer noopener">Example</a>;