Can't use state value as props for child component
问题 In my react js app, I can't seem to use the state value as props for the child component. In the parent component, constructor , the app has a null state called selectedWarehouseID . This state( selectedWarehouseID ) should update with some information in the componentWillMount() method. Now, in the render method of the parent component I am embedding another child component that has this state as a props. <ItemChooser productsByWarehouse = { this.state.selectedWarehouseID } /> Now here's the