title: Option tag not inserting values in MongoDB using React and NodeJS
body: <p>I'm trying to achieve inserting the option value tags using MERN, but whenever I tried to insert in the database it inserts nothing, I can't seem to find the issue. I just started learning MERN. Anyways this is the code I wrote. Any help will deeply be appreciated. Thanks in Advance :)</p>
  <pre><code>export default class AddClient extends Component {
    constructor(props) {
      super(props);
      this.onChangeExisting = this.onChangeExisting.bind(this);
      this.onSubmit = this.onSubmit.bind(this);
  
      this.state = {
        existing: &quot;&quot;,
      };
    }
  
    onChangeExisting(e) {
      this.setState({
        existing: e.target.value,
      });
    }
  
  
    onSubmit(e) {
      e.preventDefault();
  
      const client = {
        existing: this.state.existing,
      };
  
      console.log(client);
  
      axios
        .post(&quot;http://localhost:5000/clients/create&quot;, client)
        .then((res) =&gt; console.log(res.data));
    }
  
    render() {
      return (
        &lt;&gt;
          &lt;form onSubmit={this.onSubmit}&gt;
            
                      &lt;div className=&quot;form-group&quot;&gt;
                        &lt;label&gt;Existing Customer: &lt;/label&gt;
                        &lt;select
                          ref=&quot;userInput&quot;
                          required
                          className=&quot;form-control&quot;
                          value={this.state.existing}
                          onChange={this.onChangeExisting}
                        &gt;
                          &lt;option key=&quot;Male&quot; value=&quot;Male&quot;&gt;
                            Male
                          &lt;/option&gt;
                          &lt;option key=&quot;Female&quot; value=&quot;Female&quot;&gt;
                            Female
                          &lt;/option&gt;
                        &lt;/select&gt;
                      &lt;/div&gt;
                &lt;button type=&quot;submit&quot; onClick={this.onSubmit}&gt;submit &lt;/button&gt; 
          &lt;/form&gt;
        &lt;/&gt;
      );
    }
  }
  </code></pre>