Answers for "react change button color on hover"

0

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>
  );
Posted by: Guest on April-05-2021

Code answers related to "react change button color on hover"

Code answers related to "Javascript"

Browse Popular Code Answers by Language