{"action":"created","issue":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/754","repository_url":"https://api.github.com/repos/kriasoft/react-starter-kit","labels_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/754/comments","events_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/754/events","html_url":"https://github.com/kriasoft/react-starter-kit/issues/754","id":165977903,"number":754,"title":"How to Add a Route to RSK?","user":{"login":"richb-hanover","id":1094930,"avatar_url":"https://avatars.githubusercontent.com/u/1094930?v=3","gravatar_id":"","url":"https://api.github.com/users/richb-hanover","html_url":"https://github.com/richb-hanover","followers_url":"https://api.github.com/users/richb-hanover/followers","following_url":"https://api.github.com/users/richb-hanover/following{/other_user}","gists_url":"https://api.github.com/users/richb-hanover/gists{/gist_id}","starred_url":"https://api.github.com/users/richb-hanover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richb-hanover/subscriptions","organizations_url":"https://api.github.com/users/richb-hanover/orgs","repos_url":"https://api.github.com/users/richb-hanover/repos","events_url":"https://api.github.com/users/richb-hanover/events{/privacy}","received_events_url":"https://api.github.com/users/richb-hanover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-17T13:58:46Z","updated_at":"2016-07-17T15:56:14Z","closed_at":null,"body":"I am having trouble adding a new page/route to RSK. I have started with the current head (310bb5d), and done these steps:\r\n\r\n1. Duplicate the routes/contact folder, and rename it to 'grumble'.\r\n2. Rename the file names to Grumble.css and Grumble.js\r\n3. Edit Grumble.js: `s/Contact/Grumble/g`\r\n4. Edit index.js: change path to '/grumble', and `s/Contact/Grumble/g`\r\n5. Edit routes/index.js to `import grumble from './grumble';` and to add `grumble,` to the end of the `children` list\r\n\r\n`npm run start` opens the browser to the home page at localhost:3001\r\nlocalhost:3001/contact gives the contact page\r\nlocalhost:3001/grumble gives a blank page, instead of a copy of the Contact page.\r\n\r\nWhat else do I need to do? Thanks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/comments/233188798","html_url":"https://github.com/kriasoft/react-starter-kit/issues/754#issuecomment-233188798","issue_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/754","id":233188798,"user":{"login":"frenzzy","id":640669,"avatar_url":"https://avatars.githubusercontent.com/u/640669?v=3","gravatar_id":"","url":"https://api.github.com/users/frenzzy","html_url":"https://github.com/frenzzy","followers_url":"https://api.github.com/users/frenzzy/followers","following_url":"https://api.github.com/users/frenzzy/following{/other_user}","gists_url":"https://api.github.com/users/frenzzy/gists{/gist_id}","starred_url":"https://api.github.com/users/frenzzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenzzy/subscriptions","organizations_url":"https://api.github.com/users/frenzzy/orgs","repos_url":"https://api.github.com/users/frenzzy/repos","events_url":"https://api.github.com/users/frenzzy/events{/privacy}","received_events_url":"https://api.github.com/users/frenzzy/received_events","type":"User","site_admin":false},"created_at":"2016-07-17T15:56:14Z","updated_at":"2016-07-17T15:56:14Z","body":"[content route](https://github.com/kriasoft/react-starter-kit/blob/master/src/routes/content/index.js#L16) handles all paths, so you need to put your route before it\r\n```js\r\nchildren: [\r\n  // put your routes here...\r\n  content,\r\n],\r\n```"}}
{"actor":{"display_login":"frenzzy"}}