title: How to access updated state value in same function that used to set state value
body: <pre><code>class Signup extends React.Component {
    constructor() {
      super();
      this.state = { count: 0 }
    }
  
    hndlChange() {
      //here it's okay, It increasing count value
      this.setState({ count: this.state.count + 1 });
  
      //but here it printing previous value
      console.log(this.state.count);
  
    }
  }
  </code></pre>
  
  <p>I am calling this function. As it is increasing <code>count</code> value but when I access this it return previous value. i wan to access latest updated value in same function what should i do for that. </p>
  
  <p><strong>How to access latest state value in same function</strong></p>