{"action":"created","issue":{"url":"https://api.github.com/repos/dekujs/deku/issues/243","labels_url":"https://api.github.com/repos/dekujs/deku/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/dekujs/deku/issues/243/comments","events_url":"https://api.github.com/repos/dekujs/deku/issues/243/events","html_url":"https://github.com/dekujs/deku/issues/243","id":107344919,"number":243,"title":"Invalid example in README","user":{"login":"herkyl","id":714950,"avatar_url":"https://avatars.githubusercontent.com/u/714950?v=3","gravatar_id":"","url":"https://api.github.com/users/herkyl","html_url":"https://github.com/herkyl","followers_url":"https://api.github.com/users/herkyl/followers","following_url":"https://api.github.com/users/herkyl/following{/other_user}","gists_url":"https://api.github.com/users/herkyl/gists{/gist_id}","starred_url":"https://api.github.com/users/herkyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herkyl/subscriptions","organizations_url":"https://api.github.com/users/herkyl/orgs","repos_url":"https://api.github.com/users/herkyl/repos","events_url":"https://api.github.com/users/herkyl/events{/privacy}","received_events_url":"https://api.github.com/users/herkyl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T17:09:45Z","updated_at":"2015-09-20T15:00:58Z","closed_at":null,"body":"In this example:\r\n```javascript\r\nimport {render,app} from 'deku'\r\n\r\n// Define our custom element. The render method should\r\n// return a new virtual element.\r\nvar App = {\r\n  render: function ({ props, state }) {\r\n    return {\r\n      type: 'p',\r\n      attributes: { color: props.color }\r\n    }\r\n  }\r\n}\r\n\r\n// Then create a virtual element with our custom type\r\nvar app = tree({\r\n  type: App, // <- custom type instead of a string\r\n  attributes: { color: 'red' } // <- these become 'props'\r\n})\r\n\r\n// And render it to the DOM\r\nrender(app, document.body)\r\n```\r\n\r\nThe import line should be:\r\n```javascript\r\nimport {render, tree} from 'deku'\r\n```"},"comment":{"url":"https://api.github.com/repos/dekujs/deku/issues/comments/141793922","html_url":"https://github.com/dekujs/deku/issues/243#issuecomment-141793922","issue_url":"https://api.github.com/repos/dekujs/deku/issues/243","id":141793922,"user":{"login":"anthonyshort","id":36125,"avatar_url":"https://avatars.githubusercontent.com/u/36125?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyshort","html_url":"https://github.com/anthonyshort","followers_url":"https://api.github.com/users/anthonyshort/followers","following_url":"https://api.github.com/users/anthonyshort/following{/other_user}","gists_url":"https://api.github.com/users/anthonyshort/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyshort/subscriptions","organizations_url":"https://api.github.com/users/anthonyshort/orgs","repos_url":"https://api.github.com/users/anthonyshort/repos","events_url":"https://api.github.com/users/anthonyshort/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyshort/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T15:00:58Z","updated_at":"2015-09-20T15:00:58Z","body":"Feel free to open a PR with that change :)"}}