DEV Community

Raj
Raj

Posted on

react wait until state change

as state changes are happening asynchronously, how can I wait until state change is complete and call a function? Note: I am using functional component.

Discussion (1)

Collapse
spiropoulos94 profile image
NikosSp

I think useEffect is what you are looking for