I want one class to be toggled on onClick, the functionality that i want is whenever i click on the one of the icon it's color should get changed, (default color will be same for the both the icons but whenever I click one of the icons a class will be added and according to that class color should get changed and when I click again that class should get removed.)
import "./App.css";
import { BsCloudRain } from "react-icons/bs";
import { GiForest } from "react-icons/gi";
function App() {
return (
<div id="container">
<div id="icons">
<BsCloudRain className="rain" />
<GiForest className="forest" />
</div>
</div>
);
}
export default App;
React.useState