{"action":"created","issue":{"url":"https://api.github.com/repos/HubSpot/react-experiments/issues/16","labels_url":"https://api.github.com/repos/HubSpot/react-experiments/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/HubSpot/react-experiments/issues/16/comments","events_url":"https://api.github.com/repos/HubSpot/react-experiments/issues/16/events","html_url":"https://github.com/HubSpot/react-experiments/pull/16","id":113662165,"number":16,"title":"Render default component if not enrolled in ABTest","user":{"login":"mattrheault","id":3450569,"avatar_url":"https://avatars.githubusercontent.com/u/3450569?v=3","gravatar_id":"","url":"https://api.github.com/users/mattrheault","html_url":"https://github.com/mattrheault","followers_url":"https://api.github.com/users/mattrheault/followers","following_url":"https://api.github.com/users/mattrheault/following{/other_user}","gists_url":"https://api.github.com/users/mattrheault/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrheault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrheault/subscriptions","organizations_url":"https://api.github.com/users/mattrheault/orgs","repos_url":"https://api.github.com/users/mattrheault/repos","events_url":"https://api.github.com/users/mattrheault/events{/privacy}","received_events_url":"https://api.github.com/users/mattrheault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-27T19:26:05Z","updated_at":"2015-10-27T20:27:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HubSpot/react-experiments/pulls/16","html_url":"https://github.com/HubSpot/react-experiments/pull/16","diff_url":"https://github.com/HubSpot/react-experiments/pull/16.diff","patch_url":"https://github.com/HubSpot/react-experiments/pull/16.patch"},"body":"If I have an experiment that I want to show conditionally on some value, then I would assume that if a user is not enrolled, then they should see the children of the ```Default``` component.\r\n\r\n**EX:** Here we should see the Default component render if ```shouldEnroll``` is false.\r\n```javascript\r\nrender() {\r\n  const shouldEnroll = true || false;\r\n\r\n  return(\r\n    <ABTest experiment={experiment} on='foo' shouldEnroll={shouldEnroll}>\r\n      <When value='bar'>\r\n        {...}\r\n      </When>\r\n      <Default>\r\n        {...}\r\n      </Default>\r\n    </ABTest>\r\n  );\r\n}\r\n```\r\n\r\n---\r\n@rawls238 @gusvargas "},"comment":{"url":"https://api.github.com/repos/HubSpot/react-experiments/issues/comments/151633857","html_url":"https://github.com/HubSpot/react-experiments/pull/16#issuecomment-151633857","issue_url":"https://api.github.com/repos/HubSpot/react-experiments/issues/16","id":151633857,"user":{"login":"rawls238","id":1596135,"avatar_url":"https://avatars.githubusercontent.com/u/1596135?v=3","gravatar_id":"","url":"https://api.github.com/users/rawls238","html_url":"https://github.com/rawls238","followers_url":"https://api.github.com/users/rawls238/followers","following_url":"https://api.github.com/users/rawls238/following{/other_user}","gists_url":"https://api.github.com/users/rawls238/gists{/gist_id}","starred_url":"https://api.github.com/users/rawls238/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawls238/subscriptions","organizations_url":"https://api.github.com/users/rawls238/orgs","repos_url":"https://api.github.com/users/rawls238/repos","events_url":"https://api.github.com/users/rawls238/events{/privacy}","received_events_url":"https://api.github.com/users/rawls238/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T20:27:03Z","updated_at":"2015-10-27T20:27:03Z","body":"apart from adding that test, this looks good to me."}}