DEV Community

Discussion on: A Really Simple Intro to Changing Styling Using React State

thiagolottici profile image
ThiagoBL • Edited on

I believe this can be done by Functional component as well. Why the need of class component in this case?

lauratoddcodes profile image
Laura Todd Author

Yes, you can change state in a functional component too. I've done another post about using useState.