title: React strange internal issue depending on variable name
body: <p>I am having troubles with react depending on the name I give to a variable.</p>
  
  <p>I am using eval sourcemap to see the generated code, and there is something I am not able to understand</p>
  
  <p>I have 2 files. In one of them I export a HOC, and I import it in the other file.</p>
  
  <p>In the same file where I export that HOC, I try to use it. This is the file where I have problems:</p>
  
  <blockquote>
    <p>File A: (DmDefEntity is my HOC)</p>
  </blockquote>
  
  <pre><code>class DmClass extends Component {
    ...
    ...
    methodA() {
      ...
      return &lt;_internalDmClass def={entry.def} lbls={this.props.lbls[key]} path={key} name={key} /&gt;;
    }
  
    render() {
      ...
    }
  }
  
  const _internalDmClass = DmDefEntity(DmClass);
  export default _internalDmClass;
  </code></pre>
  
  <p>The important lines transpiled show:</p>
  
  <blockquote>
    <p>Transpile with underscore in variable</p>
  </blockquote>
  
  <pre><code>  ...
    ...
    return _react3.default.createElement(_internalDmClass, { def: entry.def, lbls: this.props.lbls[key], path: key, name: key });
    ...
    ...
  
  var _internalDmClass = (0, _DmDefEntity2.default)(DmClass);
  exports.default = _internalDmClass;
  </code></pre>
  
  <p>Everything looks good here, and it actually works perfectly.</p>
  
  <p><strong>However</strong></p>
  
  <p>If i rename this variable into "internalDmClass" (with no underscore). My transpiled File becomes:</p>
  
  <blockquote>
    <p>Transpile with no underscore in variable</p>
  </blockquote>
  
  <pre><code>  ...
    ...
    return _react3.default.createElement('internalDmClass', { def: entry.def, lbls: this.props.lbls[key], path: key, name: key });
    ...
    ...
  
  var internalDmClass = (0, _DmDefEntity2.default)(DmClass);
  exports.default = internalDmClass;
  </code></pre>
  
  <p><strong>So</strong> as you can see, depending on that underscore, it calls to createElement with a String, or the real HOC class, with its defaul property, etc.</p>
  
  <p>The effect of this in execution time is the following error:</p>
  
  <blockquote>
    <p>Warning: Unknown props <code>def</code>, <code>lbls</code>, <code>path</code> on  tag. Remove these props from the element. For details, see <a href="https://facebook.github.io/react/warnings/unknown-prop.html" rel="nofollow">https://facebook.github.io/react/warnings/unknown-prop.html</a></p>
  </blockquote>