title: Checkbox doesnt update on react on child even if the parent state update?
body: <p>This is the code from the parent:</p>
  
  <pre><code>_handleSelectedTodo(e) {
    e.preventDefault(); 
    this.setState({checkedIds: [...this.state.checkedIds, e.target.value]});
  }
  // render () { ...
  &lt;ul&gt;
  {todos.map((todo,todoIndex) =&gt; // The map method has default argument on second index, the index of the current todo in map execution. We use it so we do not have to use findIndex when we need to dispatch action that needs index of a specific todo
    &lt;Todo
      key={todo.id}
      {...todo} // pass all the todo property
      onClick={() =&gt; onTodoClick(todo.id)}
      onTrashClick={() =&gt; onDeleteClick(todoIndex)}
      handleSelectedTodo = {this._handleSelectedTodo}
      checked={Boolean(this.state.checkedIds.includes(todo.id))}
    /&gt;
  )}
  </code></pre>
  
  <p></p>
  
  <p>This is what I tried since assigning props on checkbox doesn't update on the Child Todo code, checked can be true or false that will depend on props:</p>
  
  <pre><code>componentWillMount() {
    this.setState({ checked: this.props.checked })
  }
  // render() { ...
  &lt;input
    checked={this.state.checked}
    onChange={handleSelectedTodo}
    type="checkbox"
    value={id}
  &gt;&lt;/input&gt;
  </code></pre>
  
  <p>Checking on the checkbox updates the parent component state but the checkbox on child is not checked. help?</p>