DEV Community

Discussion on: Usestate hook not working inside arrow component.

stereobooster profile image

Post link to codesandbox (not preview but sandbox itslef) where we can see error.

Thread Thread
itssimondev profile image
Simone Aronica Author

I solved it. Apparently all I had to do was setting react as an external.

Thread Thread
fattah profile image
Fattah Bezaz

hi simon could you tell me how you solved it? I have the same problem :(