{"action":"created","issue":{"url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/issues/16","labels_url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/issues/16/comments","events_url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/issues/16/events","html_url":"https://github.com/AlexGilleran/jsx-control-statements/issues/16","id":122625104,"number":16,"title":"Can't use JSXExpressionContainer as a child","user":{"login":"mwiencek","id":1056556,"avatar_url":"https://avatars.githubusercontent.com/u/1056556?v=3","gravatar_id":"","url":"https://api.github.com/users/mwiencek","html_url":"https://github.com/mwiencek","followers_url":"https://api.github.com/users/mwiencek/followers","following_url":"https://api.github.com/users/mwiencek/following{/other_user}","gists_url":"https://api.github.com/users/mwiencek/gists{/gist_id}","starred_url":"https://api.github.com/users/mwiencek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwiencek/subscriptions","organizations_url":"https://api.github.com/users/mwiencek/orgs","repos_url":"https://api.github.com/users/mwiencek/repos","events_url":"https://api.github.com/users/mwiencek/events{/privacy}","received_events_url":"https://api.github.com/users/mwiencek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-16T23:13:07Z","updated_at":"2016-01-07T09:39:32Z","closed_at":"2016-01-07T09:39:32Z","body":"I'm using babel 6.2.1 with version 2.0.1 of the plugin. I'd like to do something along the lines of:\r\n\r\n```JavaScript\r\n<If condition={foo}>\r\n  {'foo'}\r\n</If>\r\n```\r\n\r\nOr with any expression that can be enclosed in `{}`. But I get a nasty error instead:\r\n\r\n```\r\nProperty consequent of ConditionalExpression expected node to be of a type [\"Expression\"] but instead got \"JSXExpressionContainer\" at Object.validate\r\n```"},"comment":{"url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/issues/comments/169610660","html_url":"https://github.com/AlexGilleran/jsx-control-statements/issues/16#issuecomment-169610660","issue_url":"https://api.github.com/repos/AlexGilleran/jsx-control-statements/issues/16","id":169610660,"user":{"login":"AlexGilleran","id":900555,"avatar_url":"https://avatars.githubusercontent.com/u/900555?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexGilleran","html_url":"https://github.com/AlexGilleran","followers_url":"https://api.github.com/users/AlexGilleran/followers","following_url":"https://api.github.com/users/AlexGilleran/following{/other_user}","gists_url":"https://api.github.com/users/AlexGilleran/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexGilleran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexGilleran/subscriptions","organizations_url":"https://api.github.com/users/AlexGilleran/orgs","repos_url":"https://api.github.com/users/AlexGilleran/repos","events_url":"https://api.github.com/users/AlexGilleran/events{/privacy}","received_events_url":"https://api.github.com/users/AlexGilleran/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T09:39:32Z","updated_at":"2016-01-07T09:39:32Z","body":"Fixed by @texttechne in 3.0.0 :)"}}