Javascript – how to delay React routing while api is getting fetched
I have multiple routes, by default app open in "/login" endpoint which renders <Loginpage /> when I enter username and password the code in <Loginpage /> validates the credentials with the api it is fetching from localhost, Now when I…