function createNode(displayName) {
      return function(props, children) {
        return {
          displayName: displayName,
          props: props,
          children: children || []
        };
      };
    }
/**
     * Create a node for use with the parser, giving it a constructor that takes
     * props, children, and returns an object with props, children, and a
     * displayName.
     * @param  {String} displayName The display name for the node
     * @return {{displayName: string, props: Object, children: Array}}
     */
Create a node for use with the parser, giving it a constructor that takes
props, children, and returns an object with props, children, and a
displayName.
@param  {String} displayName The display name for the node
@return {{displayName: string, props: Object, children: Array}}
Create a node for use with the parser giving it a constructor that takes props children and returns an object with props children and a displayName . @param { String } displayName The display name for the node @return {{ displayName : string props : Object children : Array }}
function createNode(displayName) {
      return function(props, children) {
        return {
          displayName: displayName,
          props: props,
          children: children || []
        };
      };
    }
function createNode ( displayName ) { return function ( props , children ) { return { displayName : displayName , props : props , children : children || [ ] } ; } ; }
Create a node for use with the parser, giving it a constructor that takes
 props, children, and returns an object with props, children, and a
 displayName.
Create a node for use with the parser giving it a constructor that takes props children and returns an object with props children and a displayName .