Reactjs – How to fetch data again on button click in child component?
I created a Higher Order Component (HOC) or Container component from where I am fetching data and sending to child component. I am also using React-Router-DOM library for routing. I am using HOC component like this: <BrowserRouter> <Routes> <Route path={'/'}…