Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynen

在a标签内使用target="_blank"时会出现改警告

 Line 9:11:  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank

只需要加上 rel="noopener noreferrer"即可

 rel="noopener noreferrer"
      <a
          href="https://blog.csdn.net/HarryHY"
          target="_blank"
          rel="noopener noreferrer"
        >
          https://blog.csdn.net/HarryHY
        </a>

Using target=

你可能感兴趣的:(踩坑)