Reactjs – How to reload/refresh api data everytime on clicking a navlink in react?
I'm trying to reload the API data whenever I click a navbar link. I know the approach should be like to reload a state but I'm lost in the way to achieve it.. I'm using <Link /> of react-router v6+…