DEV Community

Discussion on: React. Functional vs class components

Collapse
 
mehtanilay10 profile image
Nilay Mehta • Edited

Yes, you can!
I was using functional components when there is no state/context requirements in components. If required then use class components.
But with introduction of Hook, We can use functional components for both requirements.