{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/3030","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/3030/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/3030/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/3030/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/3030","id":253952411,"number":3030,"title":"Is it possible for build/index.html to function in browser without the need of a server (double click from file location) ?","user":{"login":"varvarasd","id":21359557,"avatar_url":"https://avatars0.githubusercontent.com/u/21359557?v=4","gravatar_id":"","url":"https://api.github.com/users/varvarasd","html_url":"https://github.com/varvarasd","followers_url":"https://api.github.com/users/varvarasd/followers","following_url":"https://api.github.com/users/varvarasd/following{/other_user}","gists_url":"https://api.github.com/users/varvarasd/gists{/gist_id}","starred_url":"https://api.github.com/users/varvarasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varvarasd/subscriptions","organizations_url":"https://api.github.com/users/varvarasd/orgs","repos_url":"https://api.github.com/users/varvarasd/repos","events_url":"https://api.github.com/users/varvarasd/events{/privacy}","received_events_url":"https://api.github.com/users/varvarasd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-30T10:33:39Z","updated_at":"2017-08-30T14:54:37Z","closed_at":"2017-08-30T13:56:36Z","author_association":"NONE","body":"Hi everyone,\r\n\r\nI'm struggling to find the solution to this issue I'm having with create-react-app. After running npm build I want to be able to open the index.html from build folder, in browser with 'doubleclick' from file location, without the need of npm or any server. I also want my routes and functionality of the app to work in this scenario, basically to have my client see the app without having to use any server. I've been doing some research on the matter but couldn't find much. I would like to know if it's possible and if anyone has any links or even solutions to share in case I'm missing something. \r\nI'm rather new to react and your help will mean a lot.\r\nI'm using ubuntu 17. My route in App.js looks like so :\r\n\r\n\r\n```\r\nclass App extends React.Component {\r\n  render(){\r\n    return(\r\n      <Router basename=\"/\">\r\n        <Switch>\r\n            <Route exact path=\"/\" component={LoginComponent}/>\r\n            <Route path=\"/app\" component={AppLayout}/>\r\n        </Switch>\r\n      </Router>\r\n    );\r\n  }\r\n}\r\n```\r\n\r\nthen my index.js looks like so:\r\n\r\n\r\n`\r\nReactDOM.render(<App />,  document.getElementById('root'));\r\n`\r\n\r\nAfter running npm run build and open build/index.html in browser it shows nothing. After inspecting I can see the `<div id=\"root\">` being there but displaying only the comment `<!-- react-empty: 1 -->`.\r\n\r\nAny help would be greatly appreciated\r\nMany thanks in advance."},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/326016467","html_url":"https://github.com/facebookincubator/create-react-app/issues/3030#issuecomment-326016467","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/3030","id":326016467,"user":{"login":"viankakrisna","id":9636410,"avatar_url":"https://avatars1.githubusercontent.com/u/9636410?v=4","gravatar_id":"","url":"https://api.github.com/users/viankakrisna","html_url":"https://github.com/viankakrisna","followers_url":"https://api.github.com/users/viankakrisna/followers","following_url":"https://api.github.com/users/viankakrisna/following{/other_user}","gists_url":"https://api.github.com/users/viankakrisna/gists{/gist_id}","starred_url":"https://api.github.com/users/viankakrisna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viankakrisna/subscriptions","organizations_url":"https://api.github.com/users/viankakrisna/orgs","repos_url":"https://api.github.com/users/viankakrisna/repos","events_url":"https://api.github.com/users/viankakrisna/events{/privacy}","received_events_url":"https://api.github.com/users/viankakrisna/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T14:54:37Z","updated_at":"2017-08-30T14:54:37Z","author_association":"CONTRIBUTOR","body":"yup, sorry :D"}}
{"actor":{"display_login":"viankakrisna"}}