Reactjs – UseState not updating the state after API call
I am trying to use useState hook and set the state after API call, but no matter how much time it never updates. I want to use that state in other component using useContext. Now I only want my route…