DEV Community

Discussion on: Accessing React State right after setting it

 
dance2die profile image
Sung M. Kim

it must be wrapped in a condition

Ah without it, a component definitely state to update infinitely.

Thanks Truong.