0

这个是commentReducer.js

1个回答

1
constructor(props) {
super(props);
    this.state = {
    comments: this.props.comments //这里要用到this.props,必须调用super(props)
    }
}

撰写答案