{"action":"opened","issue":{"url":"https://api.github.com/repos/hoyhymho/WAD-Opdracht/issues/6","repository_url":"https://api.github.com/repos/hoyhymho/WAD-Opdracht","labels_url":"https://api.github.com/repos/hoyhymho/WAD-Opdracht/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/hoyhymho/WAD-Opdracht/issues/6/comments","events_url":"https://api.github.com/repos/hoyhymho/WAD-Opdracht/issues/6/events","html_url":"https://github.com/hoyhymho/WAD-Opdracht/issues/6","id":305975154,"number":6,"title":"return (posts[id]) ? <PostDetail /> :<NotFound/>","user":{"login":"hoyhymho","id":23653254,"avatar_url":"https://avatars3.githubusercontent.com/u/23653254?v=4","gravatar_id":"","url":"https://api.github.com/users/hoyhymho","html_url":"https://github.com/hoyhymho","followers_url":"https://api.github.com/users/hoyhymho/followers","following_url":"https://api.github.com/users/hoyhymho/following{/other_user}","gists_url":"https://api.github.com/users/hoyhymho/gists{/gist_id}","starred_url":"https://api.github.com/users/hoyhymho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoyhymho/subscriptions","organizations_url":"https://api.github.com/users/hoyhymho/orgs","repos_url":"https://api.github.com/users/hoyhymho/repos","events_url":"https://api.github.com/users/hoyhymho/events{/privacy}","received_events_url":"https://api.github.com/users/hoyhymho/received_events","type":"User","site_admin":false},"labels":[{"id":847121392,"url":"https://api.github.com/repos/hoyhymho/WAD-Opdracht/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":{"login":"SimonVanherweghe","id":655147,"avatar_url":"https://avatars1.githubusercontent.com/u/655147?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonVanherweghe","html_url":"https://github.com/SimonVanherweghe","followers_url":"https://api.github.com/users/SimonVanherweghe/followers","following_url":"https://api.github.com/users/SimonVanherweghe/following{/other_user}","gists_url":"https://api.github.com/users/SimonVanherweghe/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonVanherweghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonVanherweghe/subscriptions","organizations_url":"https://api.github.com/users/SimonVanherweghe/orgs","repos_url":"https://api.github.com/users/SimonVanherweghe/repos","events_url":"https://api.github.com/users/SimonVanherweghe/events{/privacy}","received_events_url":"https://api.github.com/users/SimonVanherweghe/received_events","type":"User","site_admin":false},"assignees":[{"login":"SimonVanherweghe","id":655147,"avatar_url":"https://avatars1.githubusercontent.com/u/655147?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonVanherweghe","html_url":"https://github.com/SimonVanherweghe","followers_url":"https://api.github.com/users/SimonVanherweghe/followers","following_url":"https://api.github.com/users/SimonVanherweghe/following{/other_user}","gists_url":"https://api.github.com/users/SimonVanherweghe/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonVanherweghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonVanherweghe/subscriptions","organizations_url":"https://api.github.com/users/SimonVanherweghe/orgs","repos_url":"https://api.github.com/users/SimonVanherweghe/repos","events_url":"https://api.github.com/users/SimonVanherweghe/events{/privacy}","received_events_url":"https://api.github.com/users/SimonVanherweghe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-16T15:36:47Z","updated_at":"2018-03-16T15:36:47Z","closed_at":null,"author_association":"OWNER","body":"https://github.com/hoyhymho/WAD-Opdracht/blob/0bb6b1203c71669c66398a14bcff77abe9d52fd8/my-reddit/src/App.js#L70\r\n\r\n```\r\nreturn (posts[id]) ? <PostDetail \r\npost ={posts[id]} \r\n/> :<NotFound/>\r\n```\r\nKan de bovenstaande code voluit geschreven worden? Ik wou het voluit schrijven om het beter te begrijpen.\r\n\r\nIk dacht dat het zoals een if else werkte en heb dit geprobeerd:\r\n\r\n```\r\n                return (\r\n                  if(posts[id]) {\r\n                    <PostDetail \r\n                    post ={posts[id]} \r\n                    /> \r\n                  }else{\r\n                    <NotFound/>\r\n                  }\r\n                ) \r\n```\r\n\r\nmaar dat werkt niet\r\n"}}
{"actor":{"display_login":"hoyhymho"}}