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

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

In a React app

Person Link

results in the following eslint error

The href attribu

3条回答
  •  再見小時候
    2021-02-06 22:53

    Perhaps you meant to put backticks instead of single-quotes in order to create a template literal. Try the following:

    Edit
    

提交回复
热议问题