href with onClick in ReactJS

后端 未结 0 609
Happy的楠姐
Happy的楠姐 2021-02-11 21:01

As per Reactjs.org to handle event and prevent default use below code:

function ActionLink() {
  function handleClick(e) {         


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