title: Input field state changes on React
body: <p>Trying to figure out why the following:</p>
  
  <pre><code>handleChange = event =&gt; {
      console.log(event.target.id, event.target.value)
      this.setState({
          [event.target.id]: event.target.value
      });
      console.log("New state: ", this.state.buyin)
  };
  </code></pre>
  
  <p>Logs "undefined"? The first log is "buyin", (whatever I type in the box) Not sure what I am doing wrong. Any help is much appreciated!</p>
  
  <p>Greetings,</p>
  
  <p>Bram</p>