Multiple times render in react functional component with hooks [duplicate]
问题 This question already has answers here : Does React batch state update functions when using hooks? (3 answers) Closed 9 months ago . Actually I am not getting the right point of this problem. So seeking help. I have this state full functional component. The thing I have noticed here is that when I fetch data using useEffect hook then I get the response properly. The problem is, when I execute console.log("ok") in the return statement it provides output multiple times in the console. The