title: How to create a global variable that can be accessed in different component in React?
body: <p>I am getting username from server and i want to use the same user name from some other component. I know session Storage is one of the way to deal with it but i dont want to use for security reason. How can we create a global object in react?</p>