{"action":"created","issue":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/896","repository_url":"https://api.github.com/repos/kriasoft/react-starter-kit","labels_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/896/comments","events_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/896/events","html_url":"https://github.com/kriasoft/react-starter-kit/issues/896","id":180804550,"number":896,"title":"what's the philosophy with components?","user":{"login":"mattroid","id":249426,"avatar_url":"https://avatars.githubusercontent.com/u/249426?v=3","gravatar_id":"","url":"https://api.github.com/users/mattroid","html_url":"https://github.com/mattroid","followers_url":"https://api.github.com/users/mattroid/followers","following_url":"https://api.github.com/users/mattroid/following{/other_user}","gists_url":"https://api.github.com/users/mattroid/gists{/gist_id}","starred_url":"https://api.github.com/users/mattroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattroid/subscriptions","organizations_url":"https://api.github.com/users/mattroid/orgs","repos_url":"https://api.github.com/users/mattroid/repos","events_url":"https://api.github.com/users/mattroid/events{/privacy}","received_events_url":"https://api.github.com/users/mattroid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-04T04:34:19Z","updated_at":"2016-11-10T14:30:15Z","closed_at":null,"body":"Do we create components with a package.js so that we can independently configure each component and make them more portable? Or is this a common practice to put package.js in sub directories of different parts of the application for commonjs to require it easily. \n"},"comment":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/comments/259703849","html_url":"https://github.com/kriasoft/react-starter-kit/issues/896#issuecomment-259703849","issue_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/896","id":259703849,"user":{"login":"koistya","id":197134,"avatar_url":"https://avatars.githubusercontent.com/u/197134?v=3","gravatar_id":"","url":"https://api.github.com/users/koistya","html_url":"https://github.com/koistya","followers_url":"https://api.github.com/users/koistya/followers","following_url":"https://api.github.com/users/koistya/following{/other_user}","gists_url":"https://api.github.com/users/koistya/gists{/gist_id}","starred_url":"https://api.github.com/users/koistya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koistya/subscriptions","organizations_url":"https://api.github.com/users/koistya/orgs","repos_url":"https://api.github.com/users/koistya/repos","events_url":"https://api.github.com/users/koistya/events{/privacy}","received_events_url":"https://api.github.com/users/koistya/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T14:30:15Z","updated_at":"2016-11-10T14:30:15Z","body":"@mattroid an alternative solution would be creating `index.js` instead of `package.json` and re-exporting component. But in case with `package.json` you import corresponding React component directly without intermediaries. For example, `Layout` references `Link` component, if you open `components/Layout/Layout.js` and CTR+Click on the `import Link from '../Link'` in your editor or IDE, you will be redirected straight to the `components/Link/Link.js` file (and not `components/Link/index.js`)."}}
{"actor":{"display_login":"koistya"}}