title: React JS Unexpected reserved word 'await'
body: <p>I am struggling with this async await issue I have created async function and for that I am calling await but I am getting error <strong>Unexpected reserved word 'await'</strong>
  Below is the async function</p>
  <pre><code>export const addProductCall = async (product) =&gt; {
      let accessToken = window.localStorage.getItem(&quot;accessToken&quot;);
      await axios.post(SERVER_URI + '/inventoryservice/v1/item',
          product,
          { headers: { &quot;Authorization&quot;: &quot;Bearer &quot; + accessToken, &quot;Content-Type&quot;: &quot;application/json&quot; } })
  }
  </code></pre>
  <p>Below is the function from where I am calling this function.</p>
  <pre><code>const handleSubmit = () =&gt; {
          const data = {
              'storeId': customerDetails.id, category, categoryToBeAdded, description,
              productCode, productName, sku, price, unit, quantity
          }
          await addProductCall(data);
      }
  </code></pre>