botão de reacção onclick
<button onClick={sayHello}>Click</button>
evento de manuseamento em jsx
//Event hadling in react
function ActionLink() {
function handleClick(e) {
e.preventDefault();
console.log('The link was clicked.');
}
return (
<a href="#" onClick={handleClick}>
Click me
</a>
);
}