title: How to call a custom React error component inside axios interceptor
body: <p>I want to show/call a custom react error component. Below is my code snippet. I am getting error since my axios interceptor is neither a react component nor a custom Hook.</p>
  <pre><code>    axios.interceptors.response.use((response) =&gt; {
  if (response.config.parse) {
      //perform the manipulation here and change the response object
  }
   return response;
  }, (error) =&gt; {
  //Want to call the component here
  return Promise.reject(error.message);
  });
  </code></pre>