code: function getChildMapping(children) {
    if (!children) {
      return children;
    }
    var result = {};
    _react.Children.map(children, function (child) {
      return child;
    }).forEach(function (child) {
      result[child.key] = child;
    });
    return result;
  }
docs: Given `this.props.children`, return an object mapping key to child.
  
  @param {*} children `this.props.children`
  @return {object} Mapping of key to child