title: How to set max number of items that can be selected in react-select?
body: <p>I am using CreatableSelect component from react-select. Now users can select as many items as they want, but I want users to select no more than 5 items. How to limit max number of options that can be selected?</p>
  
  <pre><code>&lt;CreatableSelect
    classes={classes}
    styles={selectStyles}
    textFieldProps={{
      label: "Tags"
    }}
    options={suggestions}
    components={components}
    value={this.state.multi}
    onChange={this.handleChange("multi")}
    placeholder=""
    isMulti
  /&gt;
  </code></pre>