title: why correct answer = 0 when i run that generateQA function , they come from redux both x,y and correctanswer react
body: <pre><code>class App extends Component {
  </code></pre>
  <blockquote>
  <p>here i have tried to multiply the things that i got from store, correct answer is from store too</p>
  </blockquote>
  <pre><code>   generateQA = () =&gt; {
      this.setState({ correctAnswer: this.props.x*this.props.y})
      
    }
  </code></pre>
  <blockquote>
  <p>here i imported the state from store</p>
  </blockquote>
  <pre><code>const mapStateToProps = (state) =&gt; {
      return {
        x: state.x,
        y: state.y,
        correctAnswer: state.correctAnswer
      }
    }
  
    const mapDispatchToProps = () =&gt; {
      return {
        generateX, 
        generateY,
        generateEmptyAnswer
      }
    }
   
  
  
  export default connect(mapStateToProps, mapDispatchToProps())(App);
  
     
        
  </code></pre>