title: while submitting form data synchronously from react ,i cannot console log the axios response
body: <pre><code>const submitForm= ()=&gt;{
    const newItem={
      name,email,phone,address
    }
  
    Axios.post(&quot;http://localhost:3001/api/insert&quot;,newItem) .then((response) =&gt; {
      console.log(response);
    })
  }
  </code></pre>