DEV Community

Discussion on: Testing React Hook State Changes

Collapse
 
tudormaerean profile image
tudormaerean

How do you make this work when you set the state inside a useEffect?

For me it doesn't see the mocked setState function...