import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component{ state ={ isLoading:false, data:null }; fetchData = () =>{ this.setState({ isLoading:true },()=>{ fetch('https://api.github.com/users/cxb8888').then(response=>{ if(response.ok){ return response.json(); } }).then(data=>{ this.setState({ data, isLoading:false }); }) }) }; render(){ let {isLoading, data} = this.state; return (