{"action":"created","comment":{"url":"https://api.github.com/repos/krambertech/react-essential-course/pulls/comments/94289517","pull_request_review_id":14818082,"id":94289517,"diff_hunk":"@@ -214,6 +214,31 @@ ReactDOM.render(\n     mountNode\n );\n ```\n+#### Refs\n+\n+```jsx\n+// для удобства работы с элементами DOM дерева в методе render(),\n+// мы используем refs(ссылка на элемент DOM),\n+// чтобы использовать свойства и методы полученного объекта \n+var MyComponent = React.createClass({\n+    handleClick: function() {\n+        this.refs.input.focus();\n+    },\n+    render: function() {\n+        return (\n+            <div>\n+            <input type=\"text\" ref=\"input\" />","path":"02-deep-in-components/README.md","position":35,"original_position":35,"commit_id":"5ee988207f656231ab70c6904edb2c6e133d959d","original_commit_id":"5ee988207f656231ab70c6904edb2c6e133d959d","user":{"login":"sweatC","id":15202961,"avatar_url":"https://avatars.githubusercontent.com/u/15202961?v=3","gravatar_id":"","url":"https://api.github.com/users/sweatC","html_url":"https://github.com/sweatC","followers_url":"https://api.github.com/users/sweatC/followers","following_url":"https://api.github.com/users/sweatC/following{/other_user}","gists_url":"https://api.github.com/users/sweatC/gists{/gist_id}","starred_url":"https://api.github.com/users/sweatC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweatC/subscriptions","organizations_url":"https://api.github.com/users/sweatC/orgs","repos_url":"https://api.github.com/users/sweatC/repos","events_url":"https://api.github.com/users/sweatC/events{/privacy}","received_events_url":"https://api.github.com/users/sweatC/received_events","type":"User","site_admin":false},"body":"**Полностью согласен**, но это всего лишь учебный пример, а так _callback_ намного удобнее )","created_at":"2017-01-01T22:02:23Z","updated_at":"2017-01-01T22:02:23Z","html_url":"https://github.com/krambertech/react-essential-course/pull/45#discussion_r94289517","pull_request_url":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/krambertech/react-essential-course/pulls/comments/94289517"},"html":{"href":"https://github.com/krambertech/react-essential-course/pull/45#discussion_r94289517"},"pull_request":{"href":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45","id":99826568,"html_url":"https://github.com/krambertech/react-essential-course/pull/45","diff_url":"https://github.com/krambertech/react-essential-course/pull/45.diff","patch_url":"https://github.com/krambertech/react-essential-course/pull/45.patch","issue_url":"https://api.github.com/repos/krambertech/react-essential-course/issues/45","number":45,"state":"open","locked":false,"title":"add refs section","user":{"login":"sweatC","id":15202961,"avatar_url":"https://avatars.githubusercontent.com/u/15202961?v=3","gravatar_id":"","url":"https://api.github.com/users/sweatC","html_url":"https://github.com/sweatC","followers_url":"https://api.github.com/users/sweatC/followers","following_url":"https://api.github.com/users/sweatC/following{/other_user}","gists_url":"https://api.github.com/users/sweatC/gists{/gist_id}","starred_url":"https://api.github.com/users/sweatC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweatC/subscriptions","organizations_url":"https://api.github.com/users/sweatC/orgs","repos_url":"https://api.github.com/users/sweatC/repos","events_url":"https://api.github.com/users/sweatC/events{/privacy}","received_events_url":"https://api.github.com/users/sweatC/received_events","type":"User","site_admin":false},"body":"added refs section and fixed some bugs","created_at":"2017-01-01T16:51:38Z","updated_at":"2017-01-01T22:02:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e54b0d6b685af529be0626951ce83727715fe99","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45/commits","review_comments_url":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45/comments","review_comment_url":"https://api.github.com/repos/krambertech/react-essential-course/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krambertech/react-essential-course/issues/45/comments","statuses_url":"https://api.github.com/repos/krambertech/react-essential-course/statuses/5ee988207f656231ab70c6904edb2c6e133d959d","head":{"label":"sweatC:master","ref":"master","sha":"5ee988207f656231ab70c6904edb2c6e133d959d","user":{"login":"sweatC","id":15202961,"avatar_url":"https://avatars.githubusercontent.com/u/15202961?v=3","gravatar_id":"","url":"https://api.github.com/users/sweatC","html_url":"https://github.com/sweatC","followers_url":"https://api.github.com/users/sweatC/followers","following_url":"https://api.github.com/users/sweatC/following{/other_user}","gists_url":"https://api.github.com/users/sweatC/gists{/gist_id}","starred_url":"https://api.github.com/users/sweatC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweatC/subscriptions","organizations_url":"https://api.github.com/users/sweatC/orgs","repos_url":"https://api.github.com/users/sweatC/repos","events_url":"https://api.github.com/users/sweatC/events{/privacy}","received_events_url":"https://api.github.com/users/sweatC/received_events","type":"User","site_admin":false},"repo":{"id":77409446,"name":"react-essential-course","full_name":"sweatC/react-essential-course","owner":{"login":"sweatC","id":15202961,"avatar_url":"https://avatars.githubusercontent.com/u/15202961?v=3","gravatar_id":"","url":"https://api.github.com/users/sweatC","html_url":"https://github.com/sweatC","followers_url":"https://api.github.com/users/sweatC/followers","following_url":"https://api.github.com/users/sweatC/following{/other_user}","gists_url":"https://api.github.com/users/sweatC/gists{/gist_id}","starred_url":"https://api.github.com/users/sweatC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweatC/subscriptions","organizations_url":"https://api.github.com/users/sweatC/orgs","repos_url":"https://api.github.com/users/sweatC/repos","events_url":"https://api.github.com/users/sweatC/events{/privacy}","received_events_url":"https://api.github.com/users/sweatC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sweatC/react-essential-course","description":"ITVDN - React Essential course materials","fork":true,"url":"https://api.github.com/repos/sweatC/react-essential-course","forks_url":"https://api.github.com/repos/sweatC/react-essential-course/forks","keys_url":"https://api.github.com/repos/sweatC/react-essential-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweatC/react-essential-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweatC/react-essential-course/teams","hooks_url":"https://api.github.com/repos/sweatC/react-essential-course/hooks","issue_events_url":"https://api.github.com/repos/sweatC/react-essential-course/issues/events{/number}","events_url":"https://api.github.com/repos/sweatC/react-essential-course/events","assignees_url":"https://api.github.com/repos/sweatC/react-essential-course/assignees{/user}","branches_url":"https://api.github.com/repos/sweatC/react-essential-course/branches{/branch}","tags_url":"https://api.github.com/repos/sweatC/react-essential-course/tags","blobs_url":"https://api.github.com/repos/sweatC/react-essential-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweatC/react-essential-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweatC/react-essential-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweatC/react-essential-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweatC/react-essential-course/statuses/{sha}","languages_url":"https://api.github.com/repos/sweatC/react-essential-course/languages","stargazers_url":"https://api.github.com/repos/sweatC/react-essential-course/stargazers","contributors_url":"https://api.github.com/repos/sweatC/react-essential-course/contributors","subscribers_url":"https://api.github.com/repos/sweatC/react-essential-course/subscribers","subscription_url":"https://api.github.com/repos/sweatC/react-essential-course/subscription","commits_url":"https://api.github.com/repos/sweatC/react-essential-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweatC/react-essential-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweatC/react-essential-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweatC/react-essential-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweatC/react-essential-course/contents/{+path}","compare_url":"https://api.github.com/repos/sweatC/react-essential-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweatC/react-essential-course/merges","archive_url":"https://api.github.com/repos/sweatC/react-essential-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweatC/react-essential-course/downloads","issues_url":"https://api.github.com/repos/sweatC/react-essential-course/issues{/number}","pulls_url":"https://api.github.com/repos/sweatC/react-essential-course/pulls{/number}","milestones_url":"https://api.github.com/repos/sweatC/react-essential-course/milestones{/number}","notifications_url":"https://api.github.com/repos/sweatC/react-essential-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweatC/react-essential-course/labels{/name}","releases_url":"https://api.github.com/repos/sweatC/react-essential-course/releases{/id}","deployments_url":"https://api.github.com/repos/sweatC/react-essential-course/deployments","created_at":"2016-12-26T22:14:34Z","updated_at":"2016-12-26T22:14:37Z","pushed_at":"2017-01-01T16:50:58Z","git_url":"git://github.com/sweatC/react-essential-course.git","ssh_url":"git@github.com:sweatC/react-essential-course.git","clone_url":"https://github.com/sweatC/react-essential-course.git","svn_url":"https://github.com/sweatC/react-essential-course","homepage":"http://goo.gl/h0bMKF","size":5988,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"krambertech:master","ref":"master","sha":"d9b2f777d08f632caa4471e0e62e5b8dd9958e09","user":{"login":"krambertech","id":10474869,"avatar_url":"https://avatars.githubusercontent.com/u/10474869?v=3","gravatar_id":"","url":"https://api.github.com/users/krambertech","html_url":"https://github.com/krambertech","followers_url":"https://api.github.com/users/krambertech/followers","following_url":"https://api.github.com/users/krambertech/following{/other_user}","gists_url":"https://api.github.com/users/krambertech/gists{/gist_id}","starred_url":"https://api.github.com/users/krambertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krambertech/subscriptions","organizations_url":"https://api.github.com/users/krambertech/orgs","repos_url":"https://api.github.com/users/krambertech/repos","events_url":"https://api.github.com/users/krambertech/events{/privacy}","received_events_url":"https://api.github.com/users/krambertech/received_events","type":"User","site_admin":false},"repo":{"id":46661619,"name":"react-essential-course","full_name":"krambertech/react-essential-course","owner":{"login":"krambertech","id":10474869,"avatar_url":"https://avatars.githubusercontent.com/u/10474869?v=3","gravatar_id":"","url":"https://api.github.com/users/krambertech","html_url":"https://github.com/krambertech","followers_url":"https://api.github.com/users/krambertech/followers","following_url":"https://api.github.com/users/krambertech/following{/other_user}","gists_url":"https://api.github.com/users/krambertech/gists{/gist_id}","starred_url":"https://api.github.com/users/krambertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krambertech/subscriptions","organizations_url":"https://api.github.com/users/krambertech/orgs","repos_url":"https://api.github.com/users/krambertech/repos","events_url":"https://api.github.com/users/krambertech/events{/privacy}","received_events_url":"https://api.github.com/users/krambertech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krambertech/react-essential-course","description":"ITVDN - React Essential course materials","fork":false,"url":"https://api.github.com/repos/krambertech/react-essential-course","forks_url":"https://api.github.com/repos/krambertech/react-essential-course/forks","keys_url":"https://api.github.com/repos/krambertech/react-essential-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krambertech/react-essential-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krambertech/react-essential-course/teams","hooks_url":"https://api.github.com/repos/krambertech/react-essential-course/hooks","issue_events_url":"https://api.github.com/repos/krambertech/react-essential-course/issues/events{/number}","events_url":"https://api.github.com/repos/krambertech/react-essential-course/events","assignees_url":"https://api.github.com/repos/krambertech/react-essential-course/assignees{/user}","branches_url":"https://api.github.com/repos/krambertech/react-essential-course/branches{/branch}","tags_url":"https://api.github.com/repos/krambertech/react-essential-course/tags","blobs_url":"https://api.github.com/repos/krambertech/react-essential-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krambertech/react-essential-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krambertech/react-essential-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/krambertech/react-essential-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krambertech/react-essential-course/statuses/{sha}","languages_url":"https://api.github.com/repos/krambertech/react-essential-course/languages","stargazers_url":"https://api.github.com/repos/krambertech/react-essential-course/stargazers","contributors_url":"https://api.github.com/repos/krambertech/react-essential-course/contributors","subscribers_url":"https://api.github.com/repos/krambertech/react-essential-course/subscribers","subscription_url":"https://api.github.com/repos/krambertech/react-essential-course/subscription","commits_url":"https://api.github.com/repos/krambertech/react-essential-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/krambertech/react-essential-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/krambertech/react-essential-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/krambertech/react-essential-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/krambertech/react-essential-course/contents/{+path}","compare_url":"https://api.github.com/repos/krambertech/react-essential-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krambertech/react-essential-course/merges","archive_url":"https://api.github.com/repos/krambertech/react-essential-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krambertech/react-essential-course/downloads","issues_url":"https://api.github.com/repos/krambertech/react-essential-course/issues{/number}","pulls_url":"https://api.github.com/repos/krambertech/react-essential-course/pulls{/number}","milestones_url":"https://api.github.com/repos/krambertech/react-essential-course/milestones{/number}","notifications_url":"https://api.github.com/repos/krambertech/react-essential-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krambertech/react-essential-course/labels{/name}","releases_url":"https://api.github.com/repos/krambertech/react-essential-course/releases{/id}","deployments_url":"https://api.github.com/repos/krambertech/react-essential-course/deployments","created_at":"2015-11-22T13:24:18Z","updated_at":"2016-12-25T17:05:38Z","pushed_at":"2017-01-01T16:51:39Z","git_url":"git://github.com/krambertech/react-essential-course.git","ssh_url":"git@github.com:krambertech/react-essential-course.git","clone_url":"https://github.com/krambertech/react-essential-course.git","svn_url":"https://github.com/krambertech/react-essential-course","homepage":"http://goo.gl/h0bMKF","size":5998,"stargazers_count":250,"watchers_count":250,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":146,"mirror_url":null,"open_issues_count":2,"forks":146,"open_issues":2,"watchers":250,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45"},"html":{"href":"https://github.com/krambertech/react-essential-course/pull/45"},"issue":{"href":"https://api.github.com/repos/krambertech/react-essential-course/issues/45"},"comments":{"href":"https://api.github.com/repos/krambertech/react-essential-course/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/krambertech/react-essential-course/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krambertech/react-essential-course/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/krambertech/react-essential-course/statuses/5ee988207f656231ab70c6904edb2c6e133d959d"}}}}
{"actor":{"display_login":"sweatC"}}