react click property code example Example: react button onclick <button onClick={sayHello}>Click</button>