{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4822","labels_url":"https://api.github.com/repos/facebook/react/issues/4822/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4822/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4822/events","html_url":"https://github.com/facebook/react/issues/4822","id":105622226,"number":4822,"title":"ReactDOM.render in 'react-dom' 0.14.0-beta3 throws an invariant error when using refs","user":{"login":"brainkim","id":2996754,"avatar_url":"https://avatars.githubusercontent.com/u/2996754?v=3","gravatar_id":"","url":"https://api.github.com/users/brainkim","html_url":"https://github.com/brainkim","followers_url":"https://api.github.com/users/brainkim/followers","following_url":"https://api.github.com/users/brainkim/following{/other_user}","gists_url":"https://api.github.com/users/brainkim/gists{/gist_id}","starred_url":"https://api.github.com/users/brainkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainkim/subscriptions","organizations_url":"https://api.github.com/users/brainkim/orgs","repos_url":"https://api.github.com/users/brainkim/repos","events_url":"https://api.github.com/users/brainkim/events{/privacy}","received_events_url":"https://api.github.com/users/brainkim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-09T15:32:08Z","updated_at":"2015-09-09T21:02:06Z","closed_at":"2015-09-09T15:46:52Z","body":"The error:\r\n```\r\nUncaught Error: Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref.\r\n```\r\nMinimal example repository using webpack: https://github.com/brainkim/reactdomerror\r\nSteps to reproduce:\r\n```\r\ngit clone https://github.com/brainkim/reactdomerror\r\nnpm install\r\nmake build\r\n```\r\nspin up a http server and point to index.html\r\nThis error is mitigated by using the deprecated `React.render` method instead.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/139044662","html_url":"https://github.com/facebook/react/issues/4822#issuecomment-139044662","issue_url":"https://api.github.com/repos/facebook/react/issues/4822","id":139044662,"user":{"login":"brainkim","id":2996754,"avatar_url":"https://avatars.githubusercontent.com/u/2996754?v=3","gravatar_id":"","url":"https://api.github.com/users/brainkim","html_url":"https://github.com/brainkim","followers_url":"https://api.github.com/users/brainkim/followers","following_url":"https://api.github.com/users/brainkim/following{/other_user}","gists_url":"https://api.github.com/users/brainkim/gists{/gist_id}","starred_url":"https://api.github.com/users/brainkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainkim/subscriptions","organizations_url":"https://api.github.com/users/brainkim/orgs","repos_url":"https://api.github.com/users/brainkim/repos","events_url":"https://api.github.com/users/brainkim/events{/privacy}","received_events_url":"https://api.github.com/users/brainkim/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T21:02:05Z","updated_at":"2015-09-09T21:02:05Z","body":"For posterity and so I can delete the example repository, the problem was that I was downloading React from npm at  \"0.14.0-beta1\", and ReactDOM at \"0.14.0-beta3\" in my `package.json`. Aligning the beta versions makes everything groovy.\r\n"}}