{"action":"created","issue":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/202","repository_url":"https://api.github.com/repos/sapegin/react-styleguidist","labels_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/202/comments","events_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/202/events","html_url":"https://github.com/sapegin/react-styleguidist/issues/202","id":183999838,"number":202,"title":"Exception thrown with HOC-Components","user":{"login":"marvinhagemeister","id":1062408,"avatar_url":"https://avatars.githubusercontent.com/u/1062408?v=3","gravatar_id":"","url":"https://api.github.com/users/marvinhagemeister","html_url":"https://github.com/marvinhagemeister","followers_url":"https://api.github.com/users/marvinhagemeister/followers","following_url":"https://api.github.com/users/marvinhagemeister/following{/other_user}","gists_url":"https://api.github.com/users/marvinhagemeister/gists{/gist_id}","starred_url":"https://api.github.com/users/marvinhagemeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvinhagemeister/subscriptions","organizations_url":"https://api.github.com/users/marvinhagemeister/orgs","repos_url":"https://api.github.com/users/marvinhagemeister/repos","events_url":"https://api.github.com/users/marvinhagemeister/events{/privacy}","received_events_url":"https://api.github.com/users/marvinhagemeister/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-19T15:44:17Z","updated_at":"2016-10-19T16:20:10Z","closed_at":null,"body":"We've fallen in love with styleguidist at work and plan on using it in our current react-based project. We've hit one showstopper in combination with [HOC-Components](https://medium.com/@franleplant/react-higher-order-components-in-depth-cf9032ee6c3e#.dgafgyv9j). We get the following exception when working with styleguidist:\r\n\r\n```\r\nReferenceError: MyComponent is not defined\r\n```\r\n\r\nReproducible test case:\r\n\r\n```js\r\n// MyComponent.js\r\nimport React, { Component } from 'react';\r\n\r\nconst Enhancer = Composed => class MyHOC extends Component {\r\n  render() {\r\n    return <Composed {...this.props} />;\r\n  }\r\n};\r\n\r\nconst MyComponent = () => {\r\n  return <h1>Hello</h1>;\r\n};\r\n\r\nexport default Enhancer(MyComponent);\r\n```\r\n\r\nMyComponent.md\r\n```md\r\nReact component example:\r\n\r\n  <MyComponent />\r\n```"},"comment":{"url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/comments/254864029","html_url":"https://github.com/sapegin/react-styleguidist/issues/202#issuecomment-254864029","issue_url":"https://api.github.com/repos/sapegin/react-styleguidist/issues/202","id":254864029,"user":{"login":"sapegin","id":70067,"avatar_url":"https://avatars.githubusercontent.com/u/70067?v=3","gravatar_id":"","url":"https://api.github.com/users/sapegin","html_url":"https://github.com/sapegin","followers_url":"https://api.github.com/users/sapegin/followers","following_url":"https://api.github.com/users/sapegin/following{/other_user}","gists_url":"https://api.github.com/users/sapegin/gists{/gist_id}","starred_url":"https://api.github.com/users/sapegin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapegin/subscriptions","organizations_url":"https://api.github.com/users/sapegin/orgs","repos_url":"https://api.github.com/users/sapegin/repos","events_url":"https://api.github.com/users/sapegin/events{/privacy}","received_events_url":"https://api.github.com/users/sapegin/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T16:20:10Z","updated_at":"2016-10-19T16:20:10Z","body":"Are you using the latest version? It supposed to be fixed — #143."}}
{"actor":{"display_login":"sapegin"}}