Basic eventlistener function, pass in to onClick
attribute
with {}
const Home = () => { const handleClick = () => { console.log('hey whatup') } return ( <div className="home"> <h1>Homepage</h1> <button onClick={handleClick}>Click me</button> </div> ); } export default Home;