how to give a button an action in react code example Example: react button onclick <button onClick={sayHello}>Click</button>