How to listen to click event in React

Events
By Jad Joubran · 
Last updated Jan 28, 2020
import React from "react";

function Button() {
  function handleButtonClick() {
    console.log("Button clicked!");
  }

  return <button onClick={handleButtonClick}>Click me</button>;
}