<blockquote>
<p dir="auto">Issue originally made by Арсен С (NuArsen)</p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> Babel 6.9.1 (<a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a>)</li>
<li><strong>Node version:</strong> <a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a></li>
<li><strong>npm version:</strong> <a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a></li>
</ul>
<h3 dir="auto">Input code</h3>
<p dir="auto">Not working:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default ({ onClick }) =&gt; {
  return &lt;div onClick={() =&gt; onClick()}&gt;&lt;/div&gt;;
}"><pre class="notranslate"><code class="notranslate">export default ({ onClick }) =&gt; {
  return &lt;div onClick={() =&gt; onClick()}&gt;&lt;/div&gt;;
}
</code></pre></div>
<p dir="auto">Working:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default ({ onClick }) =&gt; {
  return &lt;div onClick={onClick}&gt;&lt;/div&gt;;
}"><pre class="notranslate"><code class="notranslate">export default ({ onClick }) =&gt; {
  return &lt;div onClick={onClick}&gt;&lt;/div&gt;;
}
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Code with arrow function inside react component attribute not exporting component. Issue repeats in <a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a></p>
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jprichardson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jprichardson">@jprichardson</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.x</li>
<li><strong>Node version:</strong> 5.3.0</li>
<li><strong>npm version:</strong> 3.7.1</li>
</ul>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default (onClick) =&gt; (&lt;div onClick={ () =&gt; onClick(text) } &gt;&lt;/div&gt;);"><pre class="notranslate"><code class="notranslate">export default (onClick) =&gt; (&lt;div onClick={ () =&gt; onClick(text) } &gt;&lt;/div&gt;);
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">You'll notice an <code class="notranslate">export</code> at the bottom that didn't get transpiled.</p>
<p dir="auto">Sorry, regarding Babel "version", wasn't sure which version to put since there are so many libraries. I'm using babel-plugin-transform-es2015-arrow-functions@6.5.2.</p>