skip to Main Content

Reactjs – Creating a background color changer

import { useState } from "react" function App() { const [color, setColor] = useState("olive") return ( <div className="w-full h-screen duration-200" style={{backgroundColor: color}} ></div> ) } export default App Above code is not giving output. I tried to change the background…

VIEW QUESTION
Back To Top
Search