{"action":"opened","number":3705,"pull_request":{"url":"https://api.github.com/repos/reactjs/react-router/pulls/3705","id":80208973,"html_url":"https://github.com/reactjs/react-router/pull/3705","diff_url":"https://github.com/reactjs/react-router/pull/3705.diff","patch_url":"https://github.com/reactjs/react-router/pull/3705.patch","issue_url":"https://api.github.com/repos/reactjs/react-router/issues/3705","number":3705,"state":"open","locked":false,"title":"add \"ref\" support to JSX route definitions","user":{"login":"bsideup","id":1050762,"avatar_url":"https://avatars.githubusercontent.com/u/1050762?v=3","gravatar_id":"","url":"https://api.github.com/users/bsideup","html_url":"https://github.com/bsideup","followers_url":"https://api.github.com/users/bsideup/followers","following_url":"https://api.github.com/users/bsideup/following{/other_user}","gists_url":"https://api.github.com/users/bsideup/gists{/gist_id}","starred_url":"https://api.github.com/users/bsideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsideup/subscriptions","organizations_url":"https://api.github.com/users/bsideup/orgs","repos_url":"https://api.github.com/users/bsideup/repos","events_url":"https://api.github.com/users/bsideup/events{/privacy}","received_events_url":"https://api.github.com/users/bsideup/received_events","type":"User","site_admin":false},"body":"Hi!\r\n\r\nI have a use-case where I need to save a reference to the route definition, but my routes are declared in JSX.\r\n\r\nGiven React background, I expected `ref` to work in JSX, but it's not. \r\n\r\nThis PR makes it possible to receive `ref` callback when route is created:\r\n\r\n```jsx\r\nlet usersRoute\r\n\r\nrender((\r\n  <Router>\r\n    <Rote ref={ route => usersRoute = route} path=\"users\" component={Users} />\r\n  </Router>\r\n), document.body)\r\n```","created_at":"2016-08-05T08:45:49Z","updated_at":"2016-08-05T08:45:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b3a83b1ac1e9c88b12dcfa3c6a2ca12b4161de4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reactjs/react-router/pulls/3705/commits","review_comments_url":"https://api.github.com/repos/reactjs/react-router/pulls/3705/comments","review_comment_url":"https://api.github.com/repos/reactjs/react-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reactjs/react-router/issues/3705/comments","statuses_url":"https://api.github.com/repos/reactjs/react-router/statuses/f61e529cdf2397e8dd8da5d3c5c17e58604b44a9","head":{"label":"bsideup:refs","ref":"refs","sha":"f61e529cdf2397e8dd8da5d3c5c17e58604b44a9","user":{"login":"bsideup","id":1050762,"avatar_url":"https://avatars.githubusercontent.com/u/1050762?v=3","gravatar_id":"","url":"https://api.github.com/users/bsideup","html_url":"https://github.com/bsideup","followers_url":"https://api.github.com/users/bsideup/followers","following_url":"https://api.github.com/users/bsideup/following{/other_user}","gists_url":"https://api.github.com/users/bsideup/gists{/gist_id}","starred_url":"https://api.github.com/users/bsideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsideup/subscriptions","organizations_url":"https://api.github.com/users/bsideup/orgs","repos_url":"https://api.github.com/users/bsideup/repos","events_url":"https://api.github.com/users/bsideup/events{/privacy}","received_events_url":"https://api.github.com/users/bsideup/received_events","type":"User","site_admin":false},"repo":{"id":65001220,"name":"react-router","full_name":"bsideup/react-router","owner":{"login":"bsideup","id":1050762,"avatar_url":"https://avatars.githubusercontent.com/u/1050762?v=3","gravatar_id":"","url":"https://api.github.com/users/bsideup","html_url":"https://github.com/bsideup","followers_url":"https://api.github.com/users/bsideup/followers","following_url":"https://api.github.com/users/bsideup/following{/other_user}","gists_url":"https://api.github.com/users/bsideup/gists{/gist_id}","starred_url":"https://api.github.com/users/bsideup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsideup/subscriptions","organizations_url":"https://api.github.com/users/bsideup/orgs","repos_url":"https://api.github.com/users/bsideup/repos","events_url":"https://api.github.com/users/bsideup/events{/privacy}","received_events_url":"https://api.github.com/users/bsideup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsideup/react-router","description":"A complete routing library for React","fork":true,"url":"https://api.github.com/repos/bsideup/react-router","forks_url":"https://api.github.com/repos/bsideup/react-router/forks","keys_url":"https://api.github.com/repos/bsideup/react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsideup/react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsideup/react-router/teams","hooks_url":"https://api.github.com/repos/bsideup/react-router/hooks","issue_events_url":"https://api.github.com/repos/bsideup/react-router/issues/events{/number}","events_url":"https://api.github.com/repos/bsideup/react-router/events","assignees_url":"https://api.github.com/repos/bsideup/react-router/assignees{/user}","branches_url":"https://api.github.com/repos/bsideup/react-router/branches{/branch}","tags_url":"https://api.github.com/repos/bsideup/react-router/tags","blobs_url":"https://api.github.com/repos/bsideup/react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsideup/react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsideup/react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsideup/react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsideup/react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/bsideup/react-router/languages","stargazers_url":"https://api.github.com/repos/bsideup/react-router/stargazers","contributors_url":"https://api.github.com/repos/bsideup/react-router/contributors","subscribers_url":"https://api.github.com/repos/bsideup/react-router/subscribers","subscription_url":"https://api.github.com/repos/bsideup/react-router/subscription","commits_url":"https://api.github.com/repos/bsideup/react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsideup/react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsideup/react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsideup/react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsideup/react-router/contents/{+path}","compare_url":"https://api.github.com/repos/bsideup/react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsideup/react-router/merges","archive_url":"https://api.github.com/repos/bsideup/react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsideup/react-router/downloads","issues_url":"https://api.github.com/repos/bsideup/react-router/issues{/number}","pulls_url":"https://api.github.com/repos/bsideup/react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/bsideup/react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/bsideup/react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsideup/react-router/labels{/name}","releases_url":"https://api.github.com/repos/bsideup/react-router/releases{/id}","deployments_url":"https://api.github.com/repos/bsideup/react-router/deployments","created_at":"2016-08-05T08:10:54Z","updated_at":"2016-08-05T08:10:57Z","pushed_at":"2016-08-05T08:43:20Z","git_url":"git://github.com/bsideup/react-router.git","ssh_url":"git@github.com:bsideup/react-router.git","clone_url":"https://github.com/bsideup/react-router.git","svn_url":"https://github.com/bsideup/react-router","homepage":"","size":8639,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"reactjs:master","ref":"master","sha":"78359e663ac86aa9e3a6f5fc15fab65390e5a9bf","user":{"login":"reactjs","id":6412038,"avatar_url":"https://avatars.githubusercontent.com/u/6412038?v=3","gravatar_id":"","url":"https://api.github.com/users/reactjs","html_url":"https://github.com/reactjs","followers_url":"https://api.github.com/users/reactjs/followers","following_url":"https://api.github.com/users/reactjs/following{/other_user}","gists_url":"https://api.github.com/users/reactjs/gists{/gist_id}","starred_url":"https://api.github.com/users/reactjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactjs/subscriptions","organizations_url":"https://api.github.com/users/reactjs/orgs","repos_url":"https://api.github.com/users/reactjs/repos","events_url":"https://api.github.com/users/reactjs/events{/privacy}","received_events_url":"https://api.github.com/users/reactjs/received_events","type":"Organization","site_admin":false},"repo":{"id":19872456,"name":"react-router","full_name":"reactjs/react-router","owner":{"login":"reactjs","id":6412038,"avatar_url":"https://avatars.githubusercontent.com/u/6412038?v=3","gravatar_id":"","url":"https://api.github.com/users/reactjs","html_url":"https://github.com/reactjs","followers_url":"https://api.github.com/users/reactjs/followers","following_url":"https://api.github.com/users/reactjs/following{/other_user}","gists_url":"https://api.github.com/users/reactjs/gists{/gist_id}","starred_url":"https://api.github.com/users/reactjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reactjs/subscriptions","organizations_url":"https://api.github.com/users/reactjs/orgs","repos_url":"https://api.github.com/users/reactjs/repos","events_url":"https://api.github.com/users/reactjs/events{/privacy}","received_events_url":"https://api.github.com/users/reactjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reactjs/react-router","description":"A complete routing library for React","fork":false,"url":"https://api.github.com/repos/reactjs/react-router","forks_url":"https://api.github.com/repos/reactjs/react-router/forks","keys_url":"https://api.github.com/repos/reactjs/react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reactjs/react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reactjs/react-router/teams","hooks_url":"https://api.github.com/repos/reactjs/react-router/hooks","issue_events_url":"https://api.github.com/repos/reactjs/react-router/issues/events{/number}","events_url":"https://api.github.com/repos/reactjs/react-router/events","assignees_url":"https://api.github.com/repos/reactjs/react-router/assignees{/user}","branches_url":"https://api.github.com/repos/reactjs/react-router/branches{/branch}","tags_url":"https://api.github.com/repos/reactjs/react-router/tags","blobs_url":"https://api.github.com/repos/reactjs/react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reactjs/react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reactjs/react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/reactjs/react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reactjs/react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/reactjs/react-router/languages","stargazers_url":"https://api.github.com/repos/reactjs/react-router/stargazers","contributors_url":"https://api.github.com/repos/reactjs/react-router/contributors","subscribers_url":"https://api.github.com/repos/reactjs/react-router/subscribers","subscription_url":"https://api.github.com/repos/reactjs/react-router/subscription","commits_url":"https://api.github.com/repos/reactjs/react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/reactjs/react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/reactjs/react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/reactjs/react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/reactjs/react-router/contents/{+path}","compare_url":"https://api.github.com/repos/reactjs/react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reactjs/react-router/merges","archive_url":"https://api.github.com/repos/reactjs/react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reactjs/react-router/downloads","issues_url":"https://api.github.com/repos/reactjs/react-router/issues{/number}","pulls_url":"https://api.github.com/repos/reactjs/react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/reactjs/react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/reactjs/react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reactjs/react-router/labels{/name}","releases_url":"https://api.github.com/repos/reactjs/react-router/releases{/id}","deployments_url":"https://api.github.com/repos/reactjs/react-router/deployments","created_at":"2014-05-16T22:22:51Z","updated_at":"2016-08-05T08:00:14Z","pushed_at":"2016-08-05T08:45:49Z","git_url":"git://github.com/reactjs/react-router.git","ssh_url":"git@github.com:reactjs/react-router.git","clone_url":"https://github.com/reactjs/react-router.git","svn_url":"https://github.com/reactjs/react-router","homepage":"","size":8639,"stargazers_count":14807,"watchers_count":14807,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3307,"mirror_url":null,"open_issues_count":15,"forks":3307,"open_issues":15,"watchers":14807,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reactjs/react-router/pulls/3705"},"html":{"href":"https://github.com/reactjs/react-router/pull/3705"},"issue":{"href":"https://api.github.com/repos/reactjs/react-router/issues/3705"},"comments":{"href":"https://api.github.com/repos/reactjs/react-router/issues/3705/comments"},"review_comments":{"href":"https://api.github.com/repos/reactjs/react-router/pulls/3705/comments"},"review_comment":{"href":"https://api.github.com/repos/reactjs/react-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reactjs/react-router/pulls/3705/commits"},"statuses":{"href":"https://api.github.com/repos/reactjs/react-router/statuses/f61e529cdf2397e8dd8da5d3c5c17e58604b44a9"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":54,"deletions":5,"changed_files":5}}
{"actor":{"display_login":"bsideup"}}