DEV Community

Discussion on: ReactJs - passing state as props using an onClick event (help please)

Collapse
 
bhavyashah profile image
Bhavyashah

Hello Marc,

Can you send some screenshot of code that help us to solve your query easily.

Instead of using class use a Hooks it help you to decrease the length of code and also you can switch a state to another state easily.

So please send some screenshot of code. So we can help you easily.