examples/blog/public/components/blog.js
function (event) {
      var target = event.target;
      var key = target.getAttribute('name');
      var nextState = {};
      nextState[key] = target.value;
      this.setState(nextState);
    }
function (event) {
      var target = event.target;
      var key = target.getAttribute('name');
      var nextState = {};
      nextState[key] = target.value;
      this.setState(nextState);
    }
function ( event ) { var target = event . target ; var key = target . getAttribute ( 'name' ) ; var nextState = { } ; nextState [ key ] = target . value ; this . setState ( nextState ) ; }
Whenever an input changes, set it into this.state
Whenever an input changes set it into this . state