📜  在 jsx 中处理事件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:52.777000             🧑  作者: Mango

代码示例1
//Event hadling in react
function ActionLink() {
  function handleClick(e) {
    e.preventDefault();
    console.log('The link was clicked.');
  }

  return (
    
      Click me
    
  );
}