lib/highlighter.js
function(string) {
    this.count++;
    return React.createElement(this.props.matchElement, {
      key: this.count,
      className: this.props.matchClass,
      style: this.props.matchStyle,
      children: string
    });
  }
function(string) {
    this.count++;
    return React.createElement(this.props.matchElement, {
      key: this.count,
      className: this.props.matchClass,
      style: this.props.matchStyle,
      children: string
    });
  }
function ( string ) { this . count ++ ; return React . createElement ( this . props . matchElement , { key : this . count , className : this . props . matchClass , style : this . props . matchStyle , children : string } ) ; }
Responsible for rending a highlighted element.

@param  {string} string
A string value to wrap an element around.

@return {ReactElement}
Responsible for rending a highlighted element .