Multiple fetch data axios with React Hooks
问题 I would like to get global information from Github user and his repos(and get pinned repos will be awesome). I try to make it with async await but It's is correct? I've got 4 times reRender (4 times console log). It is possible to wait all component to reRender when all data is fetched? function App() { const [data, setData] = useState(null); const [repos, setRepos] = useState(null); useEffect(() => { const fetchData = async () => { const respGlobal = await axios(`https://api.github.com/users