Reactjs – Not possible to increment the counter using set state in a simple recursive function in React
I understand that setState is asynchronous, but does it explicitly wait for all other code to be executed before it completes (even setTimeout with delay)? I've been trying to increment a counter using a simple recursive function in React, but…