现在的情况是这样的。
我的子组件是用JSX编写的,父组件将信息传递给props,子组件不是由 **Parent Component**
<InputSection ref="inputS" ImD={this.getData} imageUri={require(this.state.imageurl)} />
**Child Component**
<img ref="image" src={this.props.imageUri} />
收集的,但我现在如何将它写入JSX?
如果它是这样写的,它不起作用,我尝试了几种方法:
这是我父亲的组成部分; enter image description here
答案 0 :(得分:0)
我找到了解决这个问题的新方法。