title: using async await with redux reducer
body: <p>What's wrong with below code? I got async is a reserved word error, I have babel configured for async/await.</p>
  
  <pre><code>export async function getCredit(){
    return dispatch =&gt; {
      try {
        const creditInfo = await axios.get(`/credit`)
      } catch (err) {
        dispatch(errorMsg(err.data.msg))
      }
  
      if(creditInfo.result === 200 &amp;&amp; res.data.status === 1) {
        dispatch({
          type: GET_CREDIT,
          payload: creditInfo.data
        })
      }
    }
  } 
  </code></pre>
  
  <p>I even tried this</p>
  
  <pre><code>export async getCredit() =&gt; dispatch =&gt; {
    try {
      const creditInfo = await axios.get(`/credit`)
    } catch (err) {
      dispatch(errorMsg(err.data.msg))
    }
  
    if(creditInfo.result === 200 &amp;&amp; res.data.status === 1) {
      dispatch({
        type: GET_CREDIT,
        payload: creditInfo.data
      })
    }
  }
  </code></pre>