UseState() and useEffect()

why countdown example in useState() doesnt need useEffect()? but when it comes to like changing a textcolor you need both useState() and useEffect()?
Was this page helpful?