src/App.js
// and set the state of results to the results from fetching the API users data.
and set the state of results to the results from fetching the API users data.
and set the state of results to the results from fetching the API users data .
componentDidMount() {
    fetch("https://random-data-api.com/api/users/random_user?size=20")
      .then((response) => response.json())
      .then((res) => {
        this.apiUsers = res;
        this.setState({ results: res })
      })
      .catch((err) => console.log(err));
  }
componentDidMount ( ) { fetch ( "https://random-data-api.com/api/users/random_user?size=20" ) . then ( ( response ) => response . json ( ) ) . then ( ( res ) => { this . apiUsers = res ; this . setState ( { results : res } ) } ) . catch ( ( err ) => console . log ( err ) ) ; }
and set the state of results to the results from fetching the API users data.
and set the state of results to the results from fetching the API users data .