code: function(component, funcReturningState) {
      return function(a, b, c, d, e, f) {
        var partialState = funcReturningState.call(component, a, b, c, d, e, f);
        if (partialState) {
          component.setState(partialState);
        }
      };
    }
docs: Returns a function that calls the provided function, and uses the result
  of that to set the component's state.
  
  @param {ReactCompositeComponent} component
  @param {function} funcReturningState Returned callback uses this to
  determine how to update state.
  @return {function} callback that when invoked uses funcReturningState to
  determined the object literal to setState.