Why react doesn't call render when state is changed?
问题 I have problem with automatically re-rendering view, when state is changed. State has been changed, but render() is not called. But when I call this.forceUpdate() , everything is ok, but I think that's not the best solution. Can someone help me with that ? class TODOItems extends React.Component { constructor() { super(); this.loadItems(); } loadItems() { this.state = { todos: Store.getItems() }; } componentDidMount(){ //this loads new items to this.state.todos, but render() is not called