{"action":"closed","issue":{"url":"https://api.github.com/repos/acdlite/recompose/issues/34","labels_url":"https://api.github.com/repos/acdlite/recompose/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/acdlite/recompose/issues/34/comments","events_url":"https://api.github.com/repos/acdlite/recompose/issues/34/events","html_url":"https://github.com/acdlite/recompose/issues/34","id":114164366,"number":34,"title":"toClass() helper","user":{"login":"acdlite","id":3624098,"avatar_url":"https://avatars.githubusercontent.com/u/3624098?v=3","gravatar_id":"","url":"https://api.github.com/users/acdlite","html_url":"https://github.com/acdlite","followers_url":"https://api.github.com/users/acdlite/followers","following_url":"https://api.github.com/users/acdlite/following{/other_user}","gists_url":"https://api.github.com/users/acdlite/gists{/gist_id}","starred_url":"https://api.github.com/users/acdlite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acdlite/subscriptions","organizations_url":"https://api.github.com/users/acdlite/orgs","repos_url":"https://api.github.com/users/acdlite/repos","events_url":"https://api.github.com/users/acdlite/events{/privacy}","received_events_url":"https://api.github.com/users/acdlite/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acdlite/recompose/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T22:54:40Z","updated_at":"2015-11-02T19:14:07Z","closed_at":"2015-11-02T19:14:07Z","body":"This would be a helper that takes a function component and wraps it in a class. This can be used as a fallback for libraries that need to add a ref to a component, like Relay.\r\n\r\n- It should return the base component if it is already a class.\r\n- It should call the function component inside of `render()`, rather than creating a new element from it.\r\n- It should copy the function component's `propTypes`, `contextTypes`, `defaultProps`, and `displayName` to the new class component.\r\n- It should correctly pass both props and context to the base component.\r\n\r\nThis would be a good first issue for anyone who would like to contribute."}}