{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/3","labels_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/3/comments","events_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/3/events","html_url":"https://github.com/gaearon/babel-plugin-react-transform/issues/3","id":104624565,"number":3,"title":"support component factory methods","user":{"login":"aaronjensen","id":8588,"avatar_url":"https://avatars.githubusercontent.com/u/8588?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronjensen","html_url":"https://github.com/aaronjensen","followers_url":"https://api.github.com/users/aaronjensen/followers","following_url":"https://api.github.com/users/aaronjensen/following{/other_user}","gists_url":"https://api.github.com/users/aaronjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjensen/subscriptions","organizations_url":"https://api.github.com/users/aaronjensen/orgs","repos_url":"https://api.github.com/users/aaronjensen/repos","events_url":"https://api.github.com/users/aaronjensen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T05:32:53Z","updated_at":"2015-09-03T11:03:11Z","closed_at":null,"body":"Many of our legacy components are created with `componentFactory({...})` instead of `React.createClass`. Ideally it'd support any factory function name."},"comment":{"url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/comments/137408611","html_url":"https://github.com/gaearon/babel-plugin-react-transform/issues/3#issuecomment-137408611","issue_url":"https://api.github.com/repos/gaearon/babel-plugin-react-transform/issues/3","id":137408611,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T11:03:11Z","updated_at":"2015-09-03T11:03:11Z","body":"Fair! Want to make a pull request? We can change `react-transform` options to be an object with `transforms` array and optional `factoryMethods` array. By default `factoryMethods` is `['React.createClass']` but you can change it to `['React.createClass', 'componentFactory']` or even `['componentFactory']`.\r\n\r\nIn the source, [this code](https://github.com/gaearon/babel-plugin-react-transform/blob/2664f352c2f224c3ce45983d291d21c1399b675c/src/index.js#L43-L51) would be changed to look at the plugin options. [Here's](https://github.com/gaearon/babel-plugin-react-transform/blob/2664f352c2f224c3ce45983d291d21c1399b675c/src/index.js#L269) how we read plugin options."}}