Reactjs – Why useState setter do not work in useeffect interval function
Classic example and not clear why setter with direct value will not work setCount(count+1) application conts only 1 and stops counting however interval function is called every second if we put a log we can see it. const { useState,…