{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4429","labels_url":"https://api.github.com/repos/facebook/react/issues/4429/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4429/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4429/events","html_url":"https://github.com/facebook/react/issues/4429","id":95945902,"number":4429,"title":"When file exports a single class, displayName should be eq. to the file name","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T20:21:07Z","updated_at":"2015-07-20T03:54:28Z","closed_at":"2015-07-20T03:54:28Z","body":"When a single file is used per module, most modules end up with derived `displayName` equal to `module.exports`. It would make sense to use file name instead, e.g.\r\n\r\n```js\r\n// PropTypes.js\r\n/** @jsx React.DOM */\r\n\r\n'use strict';\r\n\r\nvar React = require('react');\r\n\r\nmodule.exports = React.createClass({\r\n    render: function () {\r\n        return <div />;\r\n    }\r\n});\r\n```\r\n\r\nIn this case, `displayName` should be `PropTypes`."},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/122752531","html_url":"https://github.com/facebook/react/issues/4429#issuecomment-122752531","issue_url":"https://api.github.com/repos/facebook/react/issues/4429","id":122752531,"user":{"login":"zpao","id":8445,"avatar_url":"https://avatars.githubusercontent.com/u/8445?v=3","gravatar_id":"","url":"https://api.github.com/users/zpao","html_url":"https://github.com/zpao","followers_url":"https://api.github.com/users/zpao/followers","following_url":"https://api.github.com/users/zpao/following{/other_user}","gists_url":"https://api.github.com/users/zpao/gists{/gist_id}","starred_url":"https://api.github.com/users/zpao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zpao/subscriptions","organizations_url":"https://api.github.com/users/zpao/orgs","repos_url":"https://api.github.com/users/zpao/repos","events_url":"https://api.github.com/users/zpao/events{/privacy}","received_events_url":"https://api.github.com/users/zpao/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T03:54:28Z","updated_at":"2015-07-20T03:54:28Z","body":"Yea, we're killing react-tools / jsxtransformer so any requests like this should end over in babel or whatever other transformer you happen to use."}}