title: How can I store firebase user's uid in React?
body: <p>I'm working on a react web application where users can sign up with an email and a password. After signing up, each user will have access to their profile data. Below is a my firebase data structure: </p>
  
  <pre><code>users:{
     generatedUserUID:{
              name: "User1"
              profileImage: "http://via.placeholder.com/350x150"
              }
       }
  </code></pre>
  
  <p>What would be the best way to store the user's uid when the user is signed in so that it can be used throughout the project. Currently, I'm using the browser's localStorage, but I'm concerned that if the client browser doesn't support localStorage then the app will be rendered useless. So, I'm looking for an alternative and not have to depend on localStorage entirely. Any help is appreciated. Thank you.</p>