react --- 父子组件间通信-CSDN博客

网站介绍:子组件改变父组件的状态父组件class Father extends React.Component { constructor(props) { super(props) this.state = { myState: "myState", } this.setMyState = this.setMyState.bind(this) } setMySta...