{"action":"created","issue":{"url":"https://api.github.com/repos/shama/bel/issues/56","repository_url":"https://api.github.com/repos/shama/bel","labels_url":"https://api.github.com/repos/shama/bel/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/shama/bel/issues/56/comments","events_url":"https://api.github.com/repos/shama/bel/issues/56/events","html_url":"https://github.com/shama/bel/issues/56","id":184668454,"number":56,"title":"Using JSX with Bel","user":{"login":"arturi","id":1199054,"avatar_url":"https://avatars.githubusercontent.com/u/1199054?v=3","gravatar_id":"","url":"https://api.github.com/users/arturi","html_url":"https://github.com/arturi","followers_url":"https://api.github.com/users/arturi/followers","following_url":"https://api.github.com/users/arturi/following{/other_user}","gists_url":"https://api.github.com/users/arturi/gists{/gist_id}","starred_url":"https://api.github.com/users/arturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturi/subscriptions","organizations_url":"https://api.github.com/users/arturi/orgs","repos_url":"https://api.github.com/users/arturi/repos","events_url":"https://api.github.com/users/arturi/events{/privacy}","received_events_url":"https://api.github.com/users/arturi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-23T03:06:30Z","updated_at":"2016-10-23T17:31:14Z","closed_at":null,"body":"I was wondering if its possible to use JSX instead of hyperx to create elements with Bel. I like to use Bel and Yo-yo, but sometimes its convenient to go JSX route, because then components could be re-used between Yo-yo/Choo and React projects.\r\n\r\nI tried to set `jsx pragma` to `h` and then use it like so:\r\n\r\n```javascript\r\nvar h = require('bel').createElement\r\n\r\nvar el = <h1 class=\"a\">Hi</h1>\r\ndocument.body.appendChild(el)\r\n```\r\n\r\nBut children (`Hi`) never appear, and if you omit `class`, bel complaints: `Cannot read property 'namespace' of null`. Got confused, probably missing something."},"comment":{"url":"https://api.github.com/repos/shama/bel/issues/comments/255601745","html_url":"https://github.com/shama/bel/issues/56#issuecomment-255601745","issue_url":"https://api.github.com/repos/shama/bel/issues/56","id":255601745,"user":{"login":"arturi","id":1199054,"avatar_url":"https://avatars.githubusercontent.com/u/1199054?v=3","gravatar_id":"","url":"https://api.github.com/users/arturi","html_url":"https://github.com/arturi","followers_url":"https://api.github.com/users/arturi/followers","following_url":"https://api.github.com/users/arturi/following{/other_user}","gists_url":"https://api.github.com/users/arturi/gists{/gist_id}","starred_url":"https://api.github.com/users/arturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturi/subscriptions","organizations_url":"https://api.github.com/users/arturi/orgs","repos_url":"https://api.github.com/users/arturi/repos","events_url":"https://api.github.com/users/arturi/events{/privacy}","received_events_url":"https://api.github.com/users/arturi/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T17:31:14Z","updated_at":"2016-10-23T17:31:14Z","body":"So you’d want to support both or switch to their?"}}
{"actor":{"display_login":"arturi"}}