title: Exporting a function declared as constant in ES6
body: <p>I followed a guide to implement <strong>REDUX</strong> in my <code>react-native</code> app. I am trying to implement <strong>actions</strong> but my <code>eslint</code>keeps on giving this error on 8th line- </p>
  
  <pre><code>[eslint] Prefer default export. (import/prefer-default-export)
  </code></pre>
  
  <p>My code is - </p>
  
  <pre><code>import * as types from './types';
  
  const incrementCounter = counterValue =&gt; ({
    type: types.INCREMENT_COUNTER,
    counterValue,
  });
  
  export { incrementCounter };
  </code></pre>
  
  <p>My question is what is the proper way to export this constant function in ES6 ?</p>