DEV Community

Discussion on: Usestate hook not working inside arrow component.

Collapse
 
itssimondev profile image
Simone Aronica • Edited

I've edited the post.

Collapse
 
stereobooster profile image
stereobooster

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

Thread Thread
 
itssimondev profile image
Simone Aronica

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