title: how to access login details from all components in reactjs
body: <p>I have a login component which checks login credentials and makes the user login to the application. after login, the user is redirected to a component named as exchange.there are other components which uses the login credentials(username and password), other than the exchange component to make axios get requests. How do I make the username and password available to all the other components? I have used links in the buttons to redirect the user to different routes. In different routes, different components are rendered. I want to use login details to be available in all these components.</p>