client/src/App.js
//get the data and set the state
get the data and set the state
get the data and set the state
componentDidMount() {
    this.callApi()
      .then(res => { this.setState({ response: JSON.parse(res.express) }); })
      .catch(err => console.log(err));
  }
componentDidMount ( ) { this . callApi ( ) . then ( res => { this . setState ( { response : JSON . parse ( res . express ) } ) ; } ) . catch ( err => console . log ( err ) ) ; }
get the data and set the state
get the data and set the state