<span onClick={ this.handleRemoveClick(todo)}>=> X</span>handleRemoveClick = (todo)=>{
this.props.store.removeTodo(todo)
}会有一个这样的错误提示
Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
这是为什么?