{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/1939","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/1939/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/1939/comments","events_url":"https://api.github.com/repos/facebook/react/issues/1939/events","html_url":"https://github.com/facebook/react/issues/1939","id":38826402,"number":1939,"title":"Running two copies of React on a page can give errors because both use ID '.0'","user":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react/labels/Type:%20Bug","name":"Type: Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2014-07-26T21:10:14Z","updated_at":"2016-02-03T07:04:38Z","closed_at":"2015-09-10T05:10:19Z","body":"Maybe we can do something smarter with the root index generation on the client side? Seems like this should work."},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/179053838","html_url":"https://github.com/facebook/react/issues/1939#issuecomment-179053838","issue_url":"https://api.github.com/repos/facebook/react/issues/1939","id":179053838,"user":{"login":"gisenberg","id":641505,"avatar_url":"https://avatars.githubusercontent.com/u/641505?v=3","gravatar_id":"","url":"https://api.github.com/users/gisenberg","html_url":"https://github.com/gisenberg","followers_url":"https://api.github.com/users/gisenberg/followers","following_url":"https://api.github.com/users/gisenberg/following{/other_user}","gists_url":"https://api.github.com/users/gisenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/gisenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gisenberg/subscriptions","organizations_url":"https://api.github.com/users/gisenberg/orgs","repos_url":"https://api.github.com/users/gisenberg/repos","events_url":"https://api.github.com/users/gisenberg/events{/privacy}","received_events_url":"https://api.github.com/users/gisenberg/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T07:04:38Z","updated_at":"2016-02-03T07:04:38Z","body":"Hey folks,\r\n\r\nHate to resurrect an old issue, but the `ID_ATTRIBUTE_NAME` trick only seems to work in some cases. If you add an onClick to an element in the render method of a React class after using `ID_ATTRIBUTE_NAME = 'data-foo'`, you'll end up with an 'Unable to find element' error at runtime. Directly modifying `DOMProperty.js`'s assignment of `ID_ATTRIBUTE_NAME` resolves the issue.\r\n\r\nThis scenario is important because it's impossible to use a shared React component in a large multi-tenant system where different versions of React might already have been included on the page. I'm left wondering if I missed something or if there isn't a better way to solve this, since it seems that the only way to solve it right now is to fork React to change `DOMProperty`."}}