title: react limit number of selection
body: <p>I am new to React and would need help to limit the number of selected items from a dropdown menu. My dropdown has over 15 options, but I want the user to be able to select a maximum of 5 items.
  I found different ways of doing it using JQuery but I cannot implement them with React. 
  Thanks for your help!</p>
  
  <p>Edit: I am using a component from Semantic UI for the dropdown:</p>
  
  <pre><code>handleSelectTag = (event, data) =&gt; {
  this.setState({ selectedTagsId: data.value })
  }   
  
  const tagOptions = this.state.existingTags.map(tag =&gt; {
    return {key: tag.id, text: tag.name, value: tag.id}
  })
  
  &lt;Dropdown placeholder='Tags' fluid multiple selection options={tagOptions} onChange={this.handleSelectTag} /&gt;
  </code></pre>