{"action":"created","issue":{"url":"https://api.github.com/repos/kentcdodds/ama/issues/496","repository_url":"https://api.github.com/repos/kentcdodds/ama","labels_url":"https://api.github.com/repos/kentcdodds/ama/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/kentcdodds/ama/issues/496/comments","events_url":"https://api.github.com/repos/kentcdodds/ama/issues/496/events","html_url":"https://github.com/kentcdodds/ama/issues/496","id":369644768,"node_id":"MDU6SXNzdWUzNjk2NDQ3Njg=","number":496,"title":"Why is using `import { Component } from 'react';` incorrect?","user":{"login":"ewolfe","id":32533397,"node_id":"MDQ6VXNlcjMyNTMzMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/32533397?v=4","gravatar_id":"","url":"https://api.github.com/users/ewolfe","html_url":"https://github.com/ewolfe","followers_url":"https://api.github.com/users/ewolfe/followers","following_url":"https://api.github.com/users/ewolfe/following{/other_user}","gists_url":"https://api.github.com/users/ewolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ewolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewolfe/subscriptions","organizations_url":"https://api.github.com/users/ewolfe/orgs","repos_url":"https://api.github.com/users/ewolfe/repos","events_url":"https://api.github.com/users/ewolfe/events{/privacy}","received_events_url":"https://api.github.com/users/ewolfe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-12T17:35:53Z","updated_at":"2018-10-22T10:18:28Z","closed_at":null,"author_association":"NONE","body":"In one of your youtube videos (I can't remember which one) you said importing the component via `import { Component } from 'react';` was _technically_ incorrect. Can you expand on that?"},"comment":{"url":"https://api.github.com/repos/kentcdodds/ama/issues/comments/431795054","html_url":"https://github.com/kentcdodds/ama/issues/496#issuecomment-431795054","issue_url":"https://api.github.com/repos/kentcdodds/ama/issues/496","id":431795054,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTc5NTA1NA==","user":{"login":"SenhorLion","id":3295205,"node_id":"MDQ6VXNlcjMyOTUyMDU=","avatar_url":"https://avatars1.githubusercontent.com/u/3295205?v=4","gravatar_id":"","url":"https://api.github.com/users/SenhorLion","html_url":"https://github.com/SenhorLion","followers_url":"https://api.github.com/users/SenhorLion/followers","following_url":"https://api.github.com/users/SenhorLion/following{/other_user}","gists_url":"https://api.github.com/users/SenhorLion/gists{/gist_id}","starred_url":"https://api.github.com/users/SenhorLion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SenhorLion/subscriptions","organizations_url":"https://api.github.com/users/SenhorLion/orgs","repos_url":"https://api.github.com/users/SenhorLion/repos","events_url":"https://api.github.com/users/SenhorLion/events{/privacy}","received_events_url":"https://api.github.com/users/SenhorLion/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T10:18:28Z","updated_at":"2018-10-22T10:18:28Z","author_association":"NONE","body":"I think it's _technically incorrect_ because `Component` is not a named export from React, but a \"property\" on the React object (looking at the source):\r\n\r\n```JavaScript\r\nvar React = {\r\n  Component: Component,\r\n  /* ... */\r\n}\r\n```\r\n\r\nThere is only one export, `react`.\r\n\r\n\r\n"}}
{"actor":{"display_login":"SenhorLion"}}