Javascript – Unexpected Application Error! -unable to redirect using react loader from react-router-dom
Im trying to implement protected routes using react loader in react-router-dom. I have a loader attribute in my Route tag which calls a dummy requireAuth() function that checks if the route is authenticated. This function is present in a util…