{"action":"created","issue":{"url":"https://api.github.com/repos/reach/router/issues/63","repository_url":"https://api.github.com/repos/reach/router","labels_url":"https://api.github.com/repos/reach/router/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/reach/router/issues/63/comments","events_url":"https://api.github.com/repos/reach/router/issues/63/events","html_url":"https://github.com/reach/router/issues/63","id":330889342,"node_id":"MDU6SXNzdWUzMzA4ODkzNDI=","number":63,"title":"Provide a way to disable rendering `div` for `Router`","user":{"login":"chenxsan","id":1091472,"node_id":"MDQ6VXNlcjEwOTE0NzI=","avatar_url":"https://avatars1.githubusercontent.com/u/1091472?v=4","gravatar_id":"","url":"https://api.github.com/users/chenxsan","html_url":"https://github.com/chenxsan","followers_url":"https://api.github.com/users/chenxsan/followers","following_url":"https://api.github.com/users/chenxsan/following{/other_user}","gists_url":"https://api.github.com/users/chenxsan/gists{/gist_id}","starred_url":"https://api.github.com/users/chenxsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenxsan/subscriptions","organizations_url":"https://api.github.com/users/chenxsan/orgs","repos_url":"https://api.github.com/users/chenxsan/repos","events_url":"https://api.github.com/users/chenxsan/events{/privacy}","received_events_url":"https://api.github.com/users/chenxsan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-06-09T13:59:34Z","updated_at":"2018-09-28T15:09:54Z","closed_at":"2018-06-09T18:10:31Z","author_association":"NONE","body":"## Feature Request?\r\n\r\nMy root node has css like this:\r\n\r\n```css\r\ndisplay: flex;\r\nflex-direction: column;\r\nheight: 100vh;\r\n```\r\nWhen `Router` renders a `div`, it breaks my layout:\r\n\r\n<img width=\"658\" alt=\"image\" src=\"https://user-images.githubusercontent.com/1091472/41192431-00184e5e-6c30-11e8-89e9-30f45ba4be2c.png\">\r\n\r\nI found there's no way to disable it in the code https://github.com/reach/router/blob/master/src/index.js#L336.\r\n\r\nIt would be great if I can pass `false` or `null` value to `component` prop of `Router` like this to disable rendering the `div`:\r\n\r\n```\r\n<Router component={null}>\r\n ...\r\n</Router>\r\n```"},"comment":{"url":"https://api.github.com/repos/reach/router/issues/comments/425467246","html_url":"https://github.com/reach/router/issues/63#issuecomment-425467246","issue_url":"https://api.github.com/repos/reach/router/issues/63","id":425467246,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTQ2NzI0Ng==","user":{"login":"janosh","id":30958850,"node_id":"MDQ6VXNlcjMwOTU4ODUw","avatar_url":"https://avatars0.githubusercontent.com/u/30958850?v=4","gravatar_id":"","url":"https://api.github.com/users/janosh","html_url":"https://github.com/janosh","followers_url":"https://api.github.com/users/janosh/followers","following_url":"https://api.github.com/users/janosh/following{/other_user}","gists_url":"https://api.github.com/users/janosh/gists{/gist_id}","starred_url":"https://api.github.com/users/janosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janosh/subscriptions","organizations_url":"https://api.github.com/users/janosh/orgs","repos_url":"https://api.github.com/users/janosh/repos","events_url":"https://api.github.com/users/janosh/events{/privacy}","received_events_url":"https://api.github.com/users/janosh/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T15:09:54Z","updated_at":"2018-09-28T15:09:54Z","author_association":"NONE","body":"What is the issue with reusing the `div` into which React is mounted as proposed by @KyleAMathews [here](https://github.com/gatsbyjs/gatsby/issues/7310#issuecomment-413553876)."}}
{"actor":{"display_login":"janosh"}}