title: Is this a write way to export in node js
body: <pre><code>export const LoginFailure =()=&gt;({
      type:&quot;LOGIN_FAILURE&quot;,
  });
  </code></pre>
  <p>I was going through a git repository and their a saw this one and i am confuse why is this type of export
  I think it would be like this</p>
  <pre><code>export const LoginFailure=()=&gt;{
  }
  </code></pre>