re: how to handle common error pages in react and axios? VIEW POST


I had the same problem in my last project. But it was about 10 routes and i've solved it with one self written function. It was smth like:
if(err) window.location = neededErrPage


your solution is very good if you had some services , but my services are so much and it was not a good solution ,
what if , i had to change the route again , or something was wrong in my code ? i had to change 40 routes again ,
thank you bro


Of course this solution is well for mini projects. U r welcome)

Code of Conduct Report abuse