How can I fix jsx-a11y/anchor-is-valid when using the Link component in React?

前端 未结 3 1074
一整个雨季
一整个雨季 2021-02-06 22:26

In a React app

Person Link

results in the following eslint error

The href attribu

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 23:10

    you can just write some text content inside the "a" tag and hide it with CSS (font-size:0px or something

提交回复
热议问题