title: Problem with setState ReactJS, done in todoList
body: <p>Hello i have problem about change state after onClick with this function i dont know why this is doesnt work because console.log displayed difference value and i dont know why i cant set the same state.</p>
  
  <pre><code>`doneUndone = (index) =&gt; {
        console.log(!this.state.scores[index].done)
        const test = !this.state.scores[index].done
        this.setState({
             scores: test,
      })
  }`
  </code></pre>
  
  <p>here will be all code of this aplication  <a href="https://codepen.io/RetupK/pen/xxKmELd?editors=0010" rel="nofollow noreferrer">https://codepen.io/RetupK/pen/xxKmELd?editors=0010</a></p>