title: react firebase - how to get logged in users info
body: <p>I have a react app that uses firebase to login a user. What i need to know is how do i actually get the users details such as email address. I would like to get them into a variable so i can use them to populate a profile page.</p>
  
  <p>I was able to create a Login system that create a user with email, password, username and location values. They show in the firebase database but how do i use them inside the react app.</p>
  
  <p>From the documents i  believe im close with </p>
  
  <pre><code>var rootRef = new Firebase('https://website.firebaseio.com/web/uauth');
  var user = rootRef.getAuth();
  var userRef = rootRef.child('users').child(user.uid);
  </code></pre>
  
  <p>But im not sure if its correct or where to go from here.</p>