This repository was archived by the owner on Apr 9, 2020. It is now read-only.
This repository was archived by the owner on Apr 9, 2020. It is now read-only.
Loses displayName when using React.createClass #19
Closed
Description
In the following code
var App = React.createClass({
render: function() {
return <div />;
}
});
Babel (via https://github.com/babel/babel/tree/development/packages/babel-plugin-react-display-name) adds the displayName property based on the variable name.
However, this react-transform plugin doesn't seem to find these display names. Perhaps this is something to do with the ordering of the plugins?
I notice you have a test-case which confirms this behaviour - https://github.com/gaearon/babel-plugin-react-transform/blob/master/test/fixtures/classic/expected.js#L146 - was this intentional or just something that isn't yet supported?
Metadata
Metadata
Assignees
Labels
No labels