How to disable click on react-router-dom <Link> on condition

后端 未结 0 1503
甜味超标
甜味超标 2021-01-21 01:28

In my React app I have this line wherein I have to restrict clicking on the Link in case id is less than 1. How can I do this?

import { Link } from \'react-router         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题