renderOptions() {
    if (!this.state.optionItems.length > 0) {
      return null
    }
    return (
      <ul className={this.props.optionListClassName}>
        {this.state.optionItems.map(this.renderOption.bind(this))}
      </ul>
    )
  }
// Renders a list only if it has items
Renders a list only if it has items
Renders a list only if it has items
renderOptions() {
    if (!this.state.optionItems.length > 0) {
      return null
    }
    return (
      <ul className={this.props.optionListClassName}>
        {this.state.optionItems.map(this.renderOption.bind(this))}
      </ul>
    )
  }
renderOptions ( ) { if ( ! this . state . optionItems . length > 0 ) { return null } return ( < ul className = { this . props . optionListClassName } > { this . state . optionItems . map ( this . renderOption . bind ( this ) ) } < / ul > ) }
Renders a list only if it has items
Renders a list only if it has items