why did i use setTimeout with zero delay here
#React Why did i use the seTimeout with 0 delay here ?
the SetTimeout callback will be waiting in queue until the callstack is empty which means waiting until the states updates above are applied.
#React Why did i use the seTimeout with 0 delay here ?
the SetTimeout callback will be waiting in queue until the callstack is empty which means waiting until the states updates above are applied.