react报错 TypeError: Cannot read property 'setState' of undefined

代码如下: class test extends Component { constructor(props) { super(props); this.state = { liked: false }; } handleClick(event) { this.setState({lik
相关文章
相关标签/搜索