{"action":"created","issue":{"url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/issues/9","labels_url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/issues/9/comments","events_url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/issues/9/events","html_url":"https://github.com/babel-plugins/babel-plugin-incremental-dom/issues/9","id":97812298,"number":9,"title":"Capital DOM nodes are identifiers, not literals","user":{"login":"jridgewell","id":112982,"avatar_url":"https://avatars.githubusercontent.com/u/112982?v=3","gravatar_id":"","url":"https://api.github.com/users/jridgewell","html_url":"https://github.com/jridgewell","followers_url":"https://api.github.com/users/jridgewell/followers","following_url":"https://api.github.com/users/jridgewell/following{/other_user}","gists_url":"https://api.github.com/users/jridgewell/gists{/gist_id}","starred_url":"https://api.github.com/users/jridgewell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jridgewell/subscriptions","organizations_url":"https://api.github.com/users/jridgewell/orgs","repos_url":"https://api.github.com/users/jridgewell/repos","events_url":"https://api.github.com/users/jridgewell/events{/privacy}","received_events_url":"https://api.github.com/users/jridgewell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-28T22:06:44Z","updated_at":"2015-07-29T04:40:22Z","closed_at":null,"body":"Currently, we're doing the following:\r\n\r\n```jsx\r\n// Correct\r\n<div id=\"test\" />\r\nelementVoid(\"div\", null, [\"id\", \"test\"]);\r\n\r\n// Incorrect\r\n<Component id=\"test\" />\r\nelementVoid(\"Component\", null, [\"id\", \"test\"]);\r\n```\r\n\r\nNotice, we've turned a `Component` into the string literal `\"Component\"`. In proper JSX, capital DOM nodes are kept as Identifiers:\r\n\r\n```jsx\r\n// Correct\r\n<Component id=\"test\" />\r\nelementVoid(Component, null, [\"id\", \"test\"]);\r\n```"},"comment":{"url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/issues/comments/125836511","html_url":"https://github.com/babel-plugins/babel-plugin-incremental-dom/issues/9#issuecomment-125836511","issue_url":"https://api.github.com/repos/babel-plugins/babel-plugin-incremental-dom/issues/9","id":125836511,"user":{"login":"peterwmwong","id":284734,"avatar_url":"https://avatars.githubusercontent.com/u/284734?v=3","gravatar_id":"","url":"https://api.github.com/users/peterwmwong","html_url":"https://github.com/peterwmwong","followers_url":"https://api.github.com/users/peterwmwong/followers","following_url":"https://api.github.com/users/peterwmwong/following{/other_user}","gists_url":"https://api.github.com/users/peterwmwong/gists{/gist_id}","starred_url":"https://api.github.com/users/peterwmwong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterwmwong/subscriptions","organizations_url":"https://api.github.com/users/peterwmwong/orgs","repos_url":"https://api.github.com/users/peterwmwong/repos","events_url":"https://api.github.com/users/peterwmwong/events{/privacy}","received_events_url":"https://api.github.com/users/peterwmwong/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T04:40:22Z","updated_at":"2015-07-29T04:40:22Z","body":"@jridgewell @thejameskyle I managed to create a React-esque Component that can determine whether it's the initial render or subsequent render by tapping into incremental-dom's `alignWithDOM` (internal)...\r\n\r\nHere's how I'm using it... https://github.com/peterwmwong/incremental-dom-experiments/blob/1aaac51681429ae5b514a3e6d7a4ed0ab6208d2f/src/helpers/StatefulComponent.js#L76\r\n\r\nI have a mostly working (very WIP) TodoMVC app using this... https://github.com/peterwmwong/incremental-dom-experiments/blob/master/src/components/App.jsx\r\n\r\nIt would be nice if a public API of similar nature were exposed by incremental-dom."}}