css change color of button on hover react code example
Example: react change button color on hover
return (
<div className="App" style={appStyles}>
<button
className="primary"
style={styles}
onMouseEnter={() => setBgColour("#c83f49")}
onMouseLeave={() => setBgColour("#fafafa")}
>
{" "}
Red
</button>
</div>
);