{"action":"created","issue":{"url":"https://api.github.com/repos/cloudflare/react-gateway/issues/1","labels_url":"https://api.github.com/repos/cloudflare/react-gateway/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cloudflare/react-gateway/issues/1/comments","events_url":"https://api.github.com/repos/cloudflare/react-gateway/issues/1/events","html_url":"https://github.com/cloudflare/react-gateway/issues/1","id":122524646,"number":1,"title":"Can't use for server-side rendering","user":{"login":"chielkunkels","id":141643,"avatar_url":"https://avatars.githubusercontent.com/u/141643?v=3","gravatar_id":"","url":"https://api.github.com/users/chielkunkels","html_url":"https://github.com/chielkunkels","followers_url":"https://api.github.com/users/chielkunkels/followers","following_url":"https://api.github.com/users/chielkunkels/following{/other_user}","gists_url":"https://api.github.com/users/chielkunkels/gists{/gist_id}","starred_url":"https://api.github.com/users/chielkunkels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chielkunkels/subscriptions","organizations_url":"https://api.github.com/users/chielkunkels/orgs","repos_url":"https://api.github.com/users/chielkunkels/repos","events_url":"https://api.github.com/users/chielkunkels/events{/privacy}","received_events_url":"https://api.github.com/users/chielkunkels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-16T15:11:41Z","updated_at":"2015-12-17T08:17:46Z","closed_at":null,"body":"I just stumbled across this package while looking at `react-modal2` (while researching an alternative for `react-modal` and I really like the philosophy of creating small, dumb components that do one thing.\r\n\r\nHowever, I'm working on an isomorphic app and this package currently can't be used server-side, since it dies on this error:\r\n\r\n```\r\n./node_modules/react-gateway/index.js:20\r\n      to: document.body\r\n          ^\r\n\r\nReferenceError: document is not defined\r\n    at Function.module.exports.React.createClass.getDefaultProps (./node_modules/react-gateway/index.js:20:11)\r\n```\r\n\r\nThis is pretty logical of course, but it would be excellent if this package could be used server-side too so it can be used in isomorphic apps."},"comment":{"url":"https://api.github.com/repos/cloudflare/react-gateway/issues/comments/165380641","html_url":"https://github.com/cloudflare/react-gateway/issues/1#issuecomment-165380641","issue_url":"https://api.github.com/repos/cloudflare/react-gateway/issues/1","id":165380641,"user":{"login":"thejameskyle","id":952783,"avatar_url":"https://avatars.githubusercontent.com/u/952783?v=3","gravatar_id":"","url":"https://api.github.com/users/thejameskyle","html_url":"https://github.com/thejameskyle","followers_url":"https://api.github.com/users/thejameskyle/followers","following_url":"https://api.github.com/users/thejameskyle/following{/other_user}","gists_url":"https://api.github.com/users/thejameskyle/gists{/gist_id}","starred_url":"https://api.github.com/users/thejameskyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejameskyle/subscriptions","organizations_url":"https://api.github.com/users/thejameskyle/orgs","repos_url":"https://api.github.com/users/thejameskyle/repos","events_url":"https://api.github.com/users/thejameskyle/events{/privacy}","received_events_url":"https://api.github.com/users/thejameskyle/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T08:17:46Z","updated_at":"2015-12-17T08:17:46Z","body":"The only reason for the `<GatewayProvider>` is to instantiate a `registry` that gets passed in through `childContext`. I'm trying to understand the implications of that fully as I've never used context before."}}