{"action":"created","comment":{"url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/comments/178677162","pull_request_review_id":108773792,"id":178677162,"diff_hunk":"@@ -2,4 +2,53 @@\n \n **THIS IS DRAFT AF. DON'T READ IT IF YOU DON'T LIKE CONFUSION.**\n \n-## TOC\n\\ No newline at end of file\n+## TOC\n+\n+* [A \"Shit\" Example](#a-shit-example)\n+\n+## A \"Shit\" Example\n+\n+My kids are allowed tasteful explitives.\n+\"Shit\"—for example—is fine in my house.\n+My mom—however—hates the word.\n+\n+I tell Rock—my 7 year old—\"there's nothing wrong with the word 'shit'.\n+Mr. Roger's loved the word.\n+But you're grandma hates it.\n+So don't say it around her.\n+Use 'poop' instead.\"\n+\n+\"Who is Mr. Rogers?\", he'll asks.\n+I think he gets it.\n+\n+Let's implement this scenareo of \"shit\", Rock, and grandma's house using React's Context API (>= v16.4).\n+\n+```jsx\n+// It's ok to say \"shit\" as a default.\n+let ExpletiveContext = React.createContext(\"shit\");\n+\n+// Some people don't like the word \"shit\".\n+// Use a differnt word, when in their company.\n+// It's good manners.\n+let ContextualExclamation = () => (\n+  <ExpletiveContext.Consumer>\n+    {word => <span>Oh {word}!</span>}\n+  </ExpletiveContext.Consumer>\n+);\n+\n+// Grandma *hates* the word \"shit\".\n+// Say \"poop\" at Grandma's house.\n+let GrandmasHouse = props => (\n+  <ExpletiveContext.Provider value=\"poop\" {...props} />","path":"README.md","position":43,"original_position":43,"commit_id":"cd353213696381c6838694e5a4b17cfe3adc3737","original_commit_id":"cd353213696381c6838694e5a4b17cfe3adc3737","user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars0.githubusercontent.com/u/810438?v=4","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"body":"It's also not very clear from this example how this is different from just passing props. Maybe a component in between would help.","created_at":"2018-04-02T23:24:56Z","updated_at":"2018-04-02T23:25:21Z","html_url":"https://github.com/learnreact/reactcontext.com/pull/2#discussion_r178677162","pull_request_url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/comments/178677162"},"html":{"href":"https://github.com/learnreact/reactcontext.com/pull/2#discussion_r178677162"},"pull_request":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2"}},"in_reply_to_id":178676999},"pull_request":{"url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2","id":178953357,"html_url":"https://github.com/learnreact/reactcontext.com/pull/2","diff_url":"https://github.com/learnreact/reactcontext.com/pull/2.diff","patch_url":"https://github.com/learnreact/reactcontext.com/pull/2.patch","issue_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues/2","number":2,"state":"open","locked":false,"title":"add section: A 'Shit' Example","user":{"login":"chantastic","id":658360,"avatar_url":"https://avatars2.githubusercontent.com/u/658360?v=4","gravatar_id":"","url":"https://api.github.com/users/chantastic","html_url":"https://github.com/chantastic","followers_url":"https://api.github.com/users/chantastic/followers","following_url":"https://api.github.com/users/chantastic/following{/other_user}","gists_url":"https://api.github.com/users/chantastic/gists{/gist_id}","starred_url":"https://api.github.com/users/chantastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantastic/subscriptions","organizations_url":"https://api.github.com/users/chantastic/orgs","repos_url":"https://api.github.com/users/chantastic/repos","events_url":"https://api.github.com/users/chantastic/events{/privacy}","received_events_url":"https://api.github.com/users/chantastic/received_events","type":"User","site_admin":false},"body":"This section serves to provide a semi-humorous and complete simple example.\r\n\r\nI think that this is enough to help most understand the **how** of Context in a simple case.","created_at":"2018-04-02T22:55:44Z","updated_at":"2018-04-02T23:25:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2eceddd6b7c279f2d437b5bf2efa07a2121f1671","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2/commits","review_comments_url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2/comments","review_comment_url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues/2/comments","statuses_url":"https://api.github.com/repos/learnreact/reactcontext.com/statuses/cd353213696381c6838694e5a4b17cfe3adc3737","head":{"label":"learnreact:add-a-shit-example","ref":"add-a-shit-example","sha":"cd353213696381c6838694e5a4b17cfe3adc3737","user":{"login":"learnreact","id":8762086,"avatar_url":"https://avatars1.githubusercontent.com/u/8762086?v=4","gravatar_id":"","url":"https://api.github.com/users/learnreact","html_url":"https://github.com/learnreact","followers_url":"https://api.github.com/users/learnreact/followers","following_url":"https://api.github.com/users/learnreact/following{/other_user}","gists_url":"https://api.github.com/users/learnreact/gists{/gist_id}","starred_url":"https://api.github.com/users/learnreact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learnreact/subscriptions","organizations_url":"https://api.github.com/users/learnreact/orgs","repos_url":"https://api.github.com/users/learnreact/repos","events_url":"https://api.github.com/users/learnreact/events{/privacy}","received_events_url":"https://api.github.com/users/learnreact/received_events","type":"Organization","site_admin":false},"repo":{"id":126871647,"name":"reactcontext.com","full_name":"learnreact/reactcontext.com","owner":{"login":"learnreact","id":8762086,"avatar_url":"https://avatars1.githubusercontent.com/u/8762086?v=4","gravatar_id":"","url":"https://api.github.com/users/learnreact","html_url":"https://github.com/learnreact","followers_url":"https://api.github.com/users/learnreact/followers","following_url":"https://api.github.com/users/learnreact/following{/other_user}","gists_url":"https://api.github.com/users/learnreact/gists{/gist_id}","starred_url":"https://api.github.com/users/learnreact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learnreact/subscriptions","organizations_url":"https://api.github.com/users/learnreact/orgs","repos_url":"https://api.github.com/users/learnreact/repos","events_url":"https://api.github.com/users/learnreact/events{/privacy}","received_events_url":"https://api.github.com/users/learnreact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learnreact/reactcontext.com","description":"I gentle intro to the what, where, when, why, and how of React Context","fork":false,"url":"https://api.github.com/repos/learnreact/reactcontext.com","forks_url":"https://api.github.com/repos/learnreact/reactcontext.com/forks","keys_url":"https://api.github.com/repos/learnreact/reactcontext.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learnreact/reactcontext.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learnreact/reactcontext.com/teams","hooks_url":"https://api.github.com/repos/learnreact/reactcontext.com/hooks","issue_events_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues/events{/number}","events_url":"https://api.github.com/repos/learnreact/reactcontext.com/events","assignees_url":"https://api.github.com/repos/learnreact/reactcontext.com/assignees{/user}","branches_url":"https://api.github.com/repos/learnreact/reactcontext.com/branches{/branch}","tags_url":"https://api.github.com/repos/learnreact/reactcontext.com/tags","blobs_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learnreact/reactcontext.com/statuses/{sha}","languages_url":"https://api.github.com/repos/learnreact/reactcontext.com/languages","stargazers_url":"https://api.github.com/repos/learnreact/reactcontext.com/stargazers","contributors_url":"https://api.github.com/repos/learnreact/reactcontext.com/contributors","subscribers_url":"https://api.github.com/repos/learnreact/reactcontext.com/subscribers","subscription_url":"https://api.github.com/repos/learnreact/reactcontext.com/subscription","commits_url":"https://api.github.com/repos/learnreact/reactcontext.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/learnreact/reactcontext.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/learnreact/reactcontext.com/contents/{+path}","compare_url":"https://api.github.com/repos/learnreact/reactcontext.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learnreact/reactcontext.com/merges","archive_url":"https://api.github.com/repos/learnreact/reactcontext.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learnreact/reactcontext.com/downloads","issues_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues{/number}","pulls_url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls{/number}","milestones_url":"https://api.github.com/repos/learnreact/reactcontext.com/milestones{/number}","notifications_url":"https://api.github.com/repos/learnreact/reactcontext.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learnreact/reactcontext.com/labels{/name}","releases_url":"https://api.github.com/repos/learnreact/reactcontext.com/releases{/id}","deployments_url":"https://api.github.com/repos/learnreact/reactcontext.com/deployments","created_at":"2018-03-26T18:22:46Z","updated_at":"2018-04-02T23:09:34Z","pushed_at":"2018-04-02T23:09:32Z","git_url":"git://github.com/learnreact/reactcontext.com.git","ssh_url":"git@github.com:learnreact/reactcontext.com.git","clone_url":"https://github.com/learnreact/reactcontext.com.git","svn_url":"https://github.com/learnreact/reactcontext.com","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"learnreact:master","ref":"master","sha":"39eb622a49fb9fb8e4a2cc3f085dc732e41fe82e","user":{"login":"learnreact","id":8762086,"avatar_url":"https://avatars1.githubusercontent.com/u/8762086?v=4","gravatar_id":"","url":"https://api.github.com/users/learnreact","html_url":"https://github.com/learnreact","followers_url":"https://api.github.com/users/learnreact/followers","following_url":"https://api.github.com/users/learnreact/following{/other_user}","gists_url":"https://api.github.com/users/learnreact/gists{/gist_id}","starred_url":"https://api.github.com/users/learnreact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learnreact/subscriptions","organizations_url":"https://api.github.com/users/learnreact/orgs","repos_url":"https://api.github.com/users/learnreact/repos","events_url":"https://api.github.com/users/learnreact/events{/privacy}","received_events_url":"https://api.github.com/users/learnreact/received_events","type":"Organization","site_admin":false},"repo":{"id":126871647,"name":"reactcontext.com","full_name":"learnreact/reactcontext.com","owner":{"login":"learnreact","id":8762086,"avatar_url":"https://avatars1.githubusercontent.com/u/8762086?v=4","gravatar_id":"","url":"https://api.github.com/users/learnreact","html_url":"https://github.com/learnreact","followers_url":"https://api.github.com/users/learnreact/followers","following_url":"https://api.github.com/users/learnreact/following{/other_user}","gists_url":"https://api.github.com/users/learnreact/gists{/gist_id}","starred_url":"https://api.github.com/users/learnreact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learnreact/subscriptions","organizations_url":"https://api.github.com/users/learnreact/orgs","repos_url":"https://api.github.com/users/learnreact/repos","events_url":"https://api.github.com/users/learnreact/events{/privacy}","received_events_url":"https://api.github.com/users/learnreact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learnreact/reactcontext.com","description":"I gentle intro to the what, where, when, why, and how of React Context","fork":false,"url":"https://api.github.com/repos/learnreact/reactcontext.com","forks_url":"https://api.github.com/repos/learnreact/reactcontext.com/forks","keys_url":"https://api.github.com/repos/learnreact/reactcontext.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learnreact/reactcontext.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learnreact/reactcontext.com/teams","hooks_url":"https://api.github.com/repos/learnreact/reactcontext.com/hooks","issue_events_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues/events{/number}","events_url":"https://api.github.com/repos/learnreact/reactcontext.com/events","assignees_url":"https://api.github.com/repos/learnreact/reactcontext.com/assignees{/user}","branches_url":"https://api.github.com/repos/learnreact/reactcontext.com/branches{/branch}","tags_url":"https://api.github.com/repos/learnreact/reactcontext.com/tags","blobs_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learnreact/reactcontext.com/statuses/{sha}","languages_url":"https://api.github.com/repos/learnreact/reactcontext.com/languages","stargazers_url":"https://api.github.com/repos/learnreact/reactcontext.com/stargazers","contributors_url":"https://api.github.com/repos/learnreact/reactcontext.com/contributors","subscribers_url":"https://api.github.com/repos/learnreact/reactcontext.com/subscribers","subscription_url":"https://api.github.com/repos/learnreact/reactcontext.com/subscription","commits_url":"https://api.github.com/repos/learnreact/reactcontext.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/learnreact/reactcontext.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/learnreact/reactcontext.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/learnreact/reactcontext.com/contents/{+path}","compare_url":"https://api.github.com/repos/learnreact/reactcontext.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learnreact/reactcontext.com/merges","archive_url":"https://api.github.com/repos/learnreact/reactcontext.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learnreact/reactcontext.com/downloads","issues_url":"https://api.github.com/repos/learnreact/reactcontext.com/issues{/number}","pulls_url":"https://api.github.com/repos/learnreact/reactcontext.com/pulls{/number}","milestones_url":"https://api.github.com/repos/learnreact/reactcontext.com/milestones{/number}","notifications_url":"https://api.github.com/repos/learnreact/reactcontext.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learnreact/reactcontext.com/labels{/name}","releases_url":"https://api.github.com/repos/learnreact/reactcontext.com/releases{/id}","deployments_url":"https://api.github.com/repos/learnreact/reactcontext.com/deployments","created_at":"2018-03-26T18:22:46Z","updated_at":"2018-04-02T23:09:34Z","pushed_at":"2018-04-02T23:09:32Z","git_url":"git://github.com/learnreact/reactcontext.com.git","ssh_url":"git@github.com:learnreact/reactcontext.com.git","clone_url":"https://github.com/learnreact/reactcontext.com.git","svn_url":"https://github.com/learnreact/reactcontext.com","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2"},"html":{"href":"https://github.com/learnreact/reactcontext.com/pull/2"},"issue":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/issues/2"},"comments":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/learnreact/reactcontext.com/statuses/cd353213696381c6838694e5a4b17cfe3adc3737"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gaearon"}}