{"action":"created","issue":{"url":"https://api.github.com/repos/pzavolinsky/react-unit/issues/9","labels_url":"https://api.github.com/repos/pzavolinsky/react-unit/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/pzavolinsky/react-unit/issues/9/comments","events_url":"https://api.github.com/repos/pzavolinsky/react-unit/issues/9/events","html_url":"https://github.com/pzavolinsky/react-unit/pull/9","id":116076995,"number":9,"title":"Add findByRef method.","user":{"login":"ghengeveld","id":321738,"avatar_url":"https://avatars.githubusercontent.com/u/321738?v=3","gravatar_id":"","url":"https://api.github.com/users/ghengeveld","html_url":"https://github.com/ghengeveld","followers_url":"https://api.github.com/users/ghengeveld/followers","following_url":"https://api.github.com/users/ghengeveld/following{/other_user}","gists_url":"https://api.github.com/users/ghengeveld/gists{/gist_id}","starred_url":"https://api.github.com/users/ghengeveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghengeveld/subscriptions","organizations_url":"https://api.github.com/users/ghengeveld/orgs","repos_url":"https://api.github.com/users/ghengeveld/repos","events_url":"https://api.github.com/users/ghengeveld/events{/privacy}","received_events_url":"https://api.github.com/users/ghengeveld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-10T10:19:09Z","updated_at":"2015-11-12T16:09:58Z","closed_at":"2015-11-12T16:05:51Z","pull_request":{"url":"https://api.github.com/repos/pzavolinsky/react-unit/pulls/9","html_url":"https://github.com/pzavolinsky/react-unit/pull/9","diff_url":"https://github.com/pzavolinsky/react-unit/pull/9.diff","patch_url":"https://github.com/pzavolinsky/react-unit/pull/9.patch"},"body":"Of course this is easy to achieve using findBy(), but since refs are the recommended way to target components in React, it makes sense to have a shortcut for it."},"comment":{"url":"https://api.github.com/repos/pzavolinsky/react-unit/issues/comments/156150803","html_url":"https://github.com/pzavolinsky/react-unit/pull/9#issuecomment-156150803","issue_url":"https://api.github.com/repos/pzavolinsky/react-unit/issues/9","id":156150803,"user":{"login":"pzavolinsky","id":2650299,"avatar_url":"https://avatars.githubusercontent.com/u/2650299?v=3","gravatar_id":"","url":"https://api.github.com/users/pzavolinsky","html_url":"https://github.com/pzavolinsky","followers_url":"https://api.github.com/users/pzavolinsky/followers","following_url":"https://api.github.com/users/pzavolinsky/following{/other_user}","gists_url":"https://api.github.com/users/pzavolinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/pzavolinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pzavolinsky/subscriptions","organizations_url":"https://api.github.com/users/pzavolinsky/orgs","repos_url":"https://api.github.com/users/pzavolinsky/repos","events_url":"https://api.github.com/users/pzavolinsky/events{/privacy}","received_events_url":"https://api.github.com/users/pzavolinsky/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T16:09:58Z","updated_at":"2015-11-12T16:09:58Z","body":"Great, merged and published as `1.0.12`. Also note that since `1.0.11` you can: \r\n\r\n```js\r\ncomponent.findByQuery('[ref=myRef]')\r\n```\r\n\r\nand the same goes for `key` in keyed collections:\r\n\r\n```js\r\ncomponent.findByQuery('[key=myKey]')\r\n```\r\n\r\nThank you, @ghengeveld !"}}