{"action":"closed","issue":{"url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/19","labels_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/19/comments","events_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/19/events","html_url":"https://github.com/gaearon/babel-plugin-react-transform/issues/19","id":106397804,"number":19,"title":"Loses displayName when using React.createClass","user":{"login":"glenjamin","id":151272,"avatar_url":"https://avatars.githubusercontent.com/u/151272?v=3","gravatar_id":"","url":"https://api.github.com/users/glenjamin","html_url":"https://github.com/glenjamin","followers_url":"https://api.github.com/users/glenjamin/followers","following_url":"https://api.github.com/users/glenjamin/following{/other_user}","gists_url":"https://api.github.com/users/glenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/glenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenjamin/subscriptions","organizations_url":"https://api.github.com/users/glenjamin/orgs","repos_url":"https://api.github.com/users/glenjamin/repos","events_url":"https://api.github.com/users/glenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/glenjamin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-14T18:11:03Z","updated_at":"2015-09-14T18:55:33Z","closed_at":"2015-09-14T18:55:33Z","body":"In the following code\r\n\r\n```js\r\nvar App = React.createClass({\r\n  render: function() {\r\n    return <div />;\r\n  }\r\n});\r\n```\r\n\r\nBabel (via https://github.com/babel/babel/tree/development/packages/babel-plugin-react-display-name) adds the displayName property based on the variable name.\r\n\r\nHowever, this react-transform plugin doesn't seem to find these display names. Perhaps this is something to do with the ordering of the plugins?\r\n\r\nI 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?"}}