How to pass async state to child component props?
问题 I'm new to react and I am trying to fetch data from an API and pass the data to a child component. I've passed the data to the state on my parent component, however, when I pass it to the child component as props it logs as an empty array. I'm sure there is something simple I am overlooking but I don't know what, my code is below PARENT COMPONENT import React, {Component} from 'react'; import Child from '../src/child'; import './App.css'; class App extends Component { constructor(props) {