async componentDidMount() {
    // If there's a token stored, get user info and give the token to
    // the Api class
    if (localStorage.getItem("token")) {
      this.setLoggedIn({ setTokenInStorage: false });
    }
  }
// action if there's a token in local storage
action if there's a token in local storage
action if there ' s a token in local storage
async componentDidMount() {
    if (localStorage.getItem("token")) {
      this.setLoggedIn({ setTokenInStorage: false });
    }
  }
async componentDidMount ( ) { if ( localStorage . getItem ( "token" ) ) { this . setLoggedIn ( { setTokenInStorage : false } ) ; } }
action if there's a token in local storage
action if there ' s a token in local storage
// If there's a token stored, get user info and give the token to // the Api class