Fungsi Onclick Gambar Bereaksi

  const imageClick = () => {
    console.log('Click');
  }
  
  return (
     <div>
        <img src={require('/myfolder/myimage.png')} onClick={() => imageClick()} />
     </div>
  );
M Hemel Hasan