Is it possible to change background-color of my button onClick function?
background-color
onClick
ex. click background-color: black, another click
background-color: black
You also have access to event and current target of the event
handleClick = (event) => { // accessible event.target.style event.target.classList //to change style via css }