Languages

React - Using target="_blank" without rel="noreferrer" warning

0 points
Asked by:
Anisha-Kidd
652

Hello, today I've been coding some React components, and I ran into the warning below. How can make it stop showing me this warning?

Warning:

My code:

1 answer
0 points
Answered by:
Admin Dirask Community
4380

You have to add rel="noreferrer" to the <a> element to fix it.

Your code should look like:

For more information go to the following article:

  1. HTML - open link in new tab
  2. TypeScript / React - safe link to external web page

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join