我有一个个人资料图片卡,我正在使用的3个不同的地方。我将一些参数传递给ProfilePictureCard以显示相机按钮。200/300', // previous profile picture, will be replaced with selected image } _handleUpdate
我正在尝试将使用子组件中的handleUpdate函数的道具传递给我的顶级组件,并使用这些道具值更新状态。到目前为止,我没有看到道具出现在我的控制台日志。我不认为我是在传递正确的论据。子组件中的handleUpdate函数: // var word = this.state.word.trimawait MerriamAPI.getWordInfo(word); if (data