SHARE
TWEET

Untitled

a guest Sep 13th, 2017 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class AdminUsers extends Component {
  2.  
  3.   users() {
  4.  
  5.     console.log('users')
  6.  
  7.     fire.database().ref("users").orderByChild("uid").once("value").then(function(snaps) {
  8.       console.log(snaps.val());
  9.       return <p>test!</p>
  10.     });
  11.    
  12.   }
  13.  
  14.  
  15.   render() {
  16.     return (
  17.       (store.getState().logged_in ?
  18.         <div>
  19.           Logged in!
  20.           <p>{this.users}</p>
  21.           Yes!
  22.         </div>
  23.         :
  24.         <div>
  25.           You need to log in!
  26.         </div>
  27.       )
  28.     )
  29.   }
  30. }
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top