DEV Community

Discussion on: Handling Events on Stateless React Components

Collapse
 
pthacker profile image
Pratik thacker

You can also make the class component as function component, then use the useState hooks and pass it down also

Collapse
 
dmahely profile image
Doaa Mahely

Hi Pratik. I'm still learning React and haven't gone through hooks yet, so I'll keep that in mind. Thank you!