{"action":"created","issue":{"url":"https://api.github.com/repos/developit/preact-compat/issues/78","repository_url":"https://api.github.com/repos/developit/preact-compat","labels_url":"https://api.github.com/repos/developit/preact-compat/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/developit/preact-compat/issues/78/comments","events_url":"https://api.github.com/repos/developit/preact-compat/issues/78/events","html_url":"https://github.com/developit/preact-compat/issues/78","id":161209978,"number":78,"title":"Wrong render?","user":{"login":"katopz","id":97060,"avatar_url":"https://avatars.githubusercontent.com/u/97060?v=3","gravatar_id":"","url":"https://api.github.com/users/katopz","html_url":"https://github.com/katopz","followers_url":"https://api.github.com/users/katopz/followers","following_url":"https://api.github.com/users/katopz/following{/other_user}","gists_url":"https://api.github.com/users/katopz/gists{/gist_id}","starred_url":"https://api.github.com/users/katopz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katopz/subscriptions","organizations_url":"https://api.github.com/users/katopz/orgs","repos_url":"https://api.github.com/users/katopz/repos","events_url":"https://api.github.com/users/katopz/events{/privacy}","received_events_url":"https://api.github.com/users/katopz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-20T14:35:37Z","updated_at":"2016-06-20T14:53:20Z","closed_at":null,"body":"I'm trying apply `preact-compat` to [redux-undo example](https://github.com/katopz/redux-undo/tree/preact-compat) by `alias` which seem to working fine. only on thing that's not. Let's get in to the code.\r\n\r\nHere's working via `React` but not `Preact compat`\r\n```js\r\nconst Link = ({ active, children, onClick }) => {\r\n  if (active) {\r\n    return <span>{children}</span>\r\n  }\r\n\r\n  return (\r\n    <a href=\"#\"\r\n       onClick={e => {\r\n         e.preventDefault()\r\n         onClick()\r\n       }}\r\n    >\r\n      {children}\r\n    </a>\r\n  )\r\n}\r\n```\r\nIt'll appear blank (not render?) when click on category link like this\r\n\r\n![screen shot 2016-06-20 at 21 08 33](https://cloud.githubusercontent.com/assets/97060/16197624/fca7ad44-372c-11e6-8d97-0c3371c54a7e.png)\r\n\r\nHere's working both\r\n```js\r\nconst Link = ({ active, children, onClick }) => {\r\n  if (active) {\r\n    return <span>{children}</span>\r\n  }\r\n\r\n  return (<span>\r\n    <a href=\"#\"\r\n       onClick={e => {\r\n         e.preventDefault()\r\n         onClick()\r\n       }}\r\n    >\r\n      {children}\r\n    </a>\r\n  </span>)\r\n}\r\n```\r\n\r\nThe different is I've to add `return (<span>...</span>)` to make it render properly for some reason.\r\nAny hint? Or maybe just live with it?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/developit/preact-compat/issues/comments/227166107","html_url":"https://github.com/developit/preact-compat/issues/78#issuecomment-227166107","issue_url":"https://api.github.com/repos/developit/preact-compat/issues/78","id":227166107,"user":{"login":"developit","id":105127,"avatar_url":"https://avatars.githubusercontent.com/u/105127?v=3","gravatar_id":"","url":"https://api.github.com/users/developit","html_url":"https://github.com/developit","followers_url":"https://api.github.com/users/developit/followers","following_url":"https://api.github.com/users/developit/following{/other_user}","gists_url":"https://api.github.com/users/developit/gists{/gist_id}","starred_url":"https://api.github.com/users/developit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developit/subscriptions","organizations_url":"https://api.github.com/users/developit/orgs","repos_url":"https://api.github.com/users/developit/repos","events_url":"https://api.github.com/users/developit/events{/privacy}","received_events_url":"https://api.github.com/users/developit/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T14:53:20Z","updated_at":"2016-06-20T14:53:20Z","body":"@katopz What version of preact is this happening with?"}}
{"actor":{"display_login":"developit"}}