title: How to send input hidden in React JS?
body: <p>I have this form, and I would like to send these values. I know we have to use <code>setState()</code> to store data but how does it work for <code>input type="hidden"</code>? </p>
  
  <ol>
  <li>First question: How to store input hidden to setState ?</li>
  <li>Second question: How to serialize data like form.serialize() ?</li>
  <li>Third question: How to send these serialize values? Ajax or Axios, who is the better?</li>
  </ol>
  
  <p>Here is the code:</p>
  
  <pre><code>handleSubmit(e) {
      e.preventDefault();
  
     /**
      $.ajax({
          url: "post.php",
          type: "POST",
          data: DATA,
          success:function(data) {
  
          }
      });
      **/
   }
  
              &lt;form onSubmit={this.handleSubmit}&gt;
                          &lt;input type="hidden" name="action" value="login" /&gt;
                          &lt;input type="email" name="email_user" placeholder="Email" /&gt;
                          &lt;input type="password" name="password_user" placeholder="Mot de passe" /&gt;
                          &lt;button type="submit"&gt;Login&lt;/button&gt;
              &lt;/form&gt;
  </code></pre>