DEV Community

Discussion on: Is there a way to explain hooks without mentioning class component?

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí

The same way you could explain classes without explaining Hooks, it’s easier to do the comparison if you already know classes, but for someone new to React there is no reason to mention classes, explains what state is, what useState returns and how to use it.