{"action":"created","comment":{"url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/comments/39296535","id":39296535,"diff_hunk":"@@ -0,0 +1,54 @@\n+'use strict';\n+\n+require('material-design-lite/material.min.css');\n+\n+const React = require('react');\n+const mdl = require('material-design-lite/material.min');\n+const classnames = require('classnames');\n+\n+const baseClasses = {\n+  'mdl-badge': true\n+};\n+\n+class Badge extends React.Component {\n+\n+  componentDidMount(){\n+    const node = React.findDOMNode(this);\n+    mdl.upgradeElement(node, 'MaterialBadge');\n+  }\n+\n+  componentWillUnmount(){\n+    const node = React.findDOMNode(this);\n+    mdl.downgradeElements(node);\n+  }\n+\n+  render(){\n+    const {\n+      href = '#',","path":"src/badge.js","position":27,"original_position":27,"commit_id":"c9eb3c19631690247e8b540ccc431784cb7a5f72","original_commit_id":"ad89697a5b885c26f3a527cd7574ad6e74bb5d7a","user":{"login":"phated","id":992373,"avatar_url":"https://avatars.githubusercontent.com/u/992373?v=3","gravatar_id":"","url":"https://api.github.com/users/phated","html_url":"https://github.com/phated","followers_url":"https://api.github.com/users/phated/followers","following_url":"https://api.github.com/users/phated/following{/other_user}","gists_url":"https://api.github.com/users/phated/gists{/gist_id}","starred_url":"https://api.github.com/users/phated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phated/subscriptions","organizations_url":"https://api.github.com/users/phated/orgs","repos_url":"https://api.github.com/users/phated/repos","events_url":"https://api.github.com/users/phated/events{/privacy}","received_events_url":"https://api.github.com/users/phated/received_events","type":"User","site_admin":false},"body":"maybe it shouldn't default at all, I feel like `#` is an anti-pattern in react since everything is wired up on render","created_at":"2015-09-11T17:44:18Z","updated_at":"2015-09-11T17:44:18Z","html_url":"https://github.com/iceddev/react-material-design-lite/pull/2#discussion_r39296535","pull_request_url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/comments/39296535"},"html":{"href":"https://github.com/iceddev/react-material-design-lite/pull/2#discussion_r39296535"},"pull_request":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2","id":44695445,"html_url":"https://github.com/iceddev/react-material-design-lite/pull/2","diff_url":"https://github.com/iceddev/react-material-design-lite/pull/2.diff","patch_url":"https://github.com/iceddev/react-material-design-lite/pull/2.patch","issue_url":"https://api.github.com/repos/iceddev/react-material-design-lite/issues/2","number":2,"state":"open","locked":false,"title":"Add Badge","user":{"login":"coderhaoxin","id":2569835,"avatar_url":"https://avatars.githubusercontent.com/u/2569835?v=3","gravatar_id":"","url":"https://api.github.com/users/coderhaoxin","html_url":"https://github.com/coderhaoxin","followers_url":"https://api.github.com/users/coderhaoxin/followers","following_url":"https://api.github.com/users/coderhaoxin/following{/other_user}","gists_url":"https://api.github.com/users/coderhaoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderhaoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderhaoxin/subscriptions","organizations_url":"https://api.github.com/users/coderhaoxin/orgs","repos_url":"https://api.github.com/users/coderhaoxin/repos","events_url":"https://api.github.com/users/coderhaoxin/events{/privacy}","received_events_url":"https://api.github.com/users/coderhaoxin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-10T17:25:43Z","updated_at":"2015-09-11T17:44:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49fd1ecd49696fb0fe0219e7025651ee108a0b65","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2/commits","review_comments_url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2/comments","review_comment_url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iceddev/react-material-design-lite/issues/2/comments","statuses_url":"https://api.github.com/repos/iceddev/react-material-design-lite/statuses/c9eb3c19631690247e8b540ccc431784cb7a5f72","head":{"label":"coderhaoxin:add-badge","ref":"add-badge","sha":"c9eb3c19631690247e8b540ccc431784cb7a5f72","user":{"login":"coderhaoxin","id":2569835,"avatar_url":"https://avatars.githubusercontent.com/u/2569835?v=3","gravatar_id":"","url":"https://api.github.com/users/coderhaoxin","html_url":"https://github.com/coderhaoxin","followers_url":"https://api.github.com/users/coderhaoxin/followers","following_url":"https://api.github.com/users/coderhaoxin/following{/other_user}","gists_url":"https://api.github.com/users/coderhaoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderhaoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderhaoxin/subscriptions","organizations_url":"https://api.github.com/users/coderhaoxin/orgs","repos_url":"https://api.github.com/users/coderhaoxin/repos","events_url":"https://api.github.com/users/coderhaoxin/events{/privacy}","received_events_url":"https://api.github.com/users/coderhaoxin/received_events","type":"User","site_admin":false},"repo":{"id":42222897,"name":"react-material-design-lite","full_name":"coderhaoxin/react-material-design-lite","owner":{"login":"coderhaoxin","id":2569835,"avatar_url":"https://avatars.githubusercontent.com/u/2569835?v=3","gravatar_id":"","url":"https://api.github.com/users/coderhaoxin","html_url":"https://github.com/coderhaoxin","followers_url":"https://api.github.com/users/coderhaoxin/followers","following_url":"https://api.github.com/users/coderhaoxin/following{/other_user}","gists_url":"https://api.github.com/users/coderhaoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderhaoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderhaoxin/subscriptions","organizations_url":"https://api.github.com/users/coderhaoxin/orgs","repos_url":"https://api.github.com/users/coderhaoxin/repos","events_url":"https://api.github.com/users/coderhaoxin/events{/privacy}","received_events_url":"https://api.github.com/users/coderhaoxin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coderhaoxin/react-material-design-lite","description":"React component wrappers around Google's Material Design Lite library","fork":true,"url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite","forks_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/forks","keys_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/teams","hooks_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/hooks","issue_events_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/issues/events{/number}","events_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/events","assignees_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/assignees{/user}","branches_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/branches{/branch}","tags_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/tags","blobs_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/languages","stargazers_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/stargazers","contributors_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/contributors","subscribers_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/subscribers","subscription_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/subscription","commits_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/contents/{+path}","compare_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/merges","archive_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/downloads","issues_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/issues{/number}","pulls_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/labels{/name}","releases_url":"https://api.github.com/repos/coderhaoxin/react-material-design-lite/releases{/id}","created_at":"2015-09-10T04:55:01Z","updated_at":"2015-09-10T04:55:02Z","pushed_at":"2015-09-11T07:41:50Z","git_url":"git://github.com/coderhaoxin/react-material-design-lite.git","ssh_url":"git@github.com:coderhaoxin/react-material-design-lite.git","clone_url":"https://github.com/coderhaoxin/react-material-design-lite.git","svn_url":"https://github.com/coderhaoxin/react-material-design-lite","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iceddev:master","ref":"master","sha":"590cb53479f8dea5ace96d268ca1d5c2e7040ac2","user":{"login":"iceddev","id":1459970,"avatar_url":"https://avatars.githubusercontent.com/u/1459970?v=3","gravatar_id":"","url":"https://api.github.com/users/iceddev","html_url":"https://github.com/iceddev","followers_url":"https://api.github.com/users/iceddev/followers","following_url":"https://api.github.com/users/iceddev/following{/other_user}","gists_url":"https://api.github.com/users/iceddev/gists{/gist_id}","starred_url":"https://api.github.com/users/iceddev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceddev/subscriptions","organizations_url":"https://api.github.com/users/iceddev/orgs","repos_url":"https://api.github.com/users/iceddev/repos","events_url":"https://api.github.com/users/iceddev/events{/privacy}","received_events_url":"https://api.github.com/users/iceddev/received_events","type":"Organization","site_admin":false},"repo":{"id":39093823,"name":"react-material-design-lite","full_name":"iceddev/react-material-design-lite","owner":{"login":"iceddev","id":1459970,"avatar_url":"https://avatars.githubusercontent.com/u/1459970?v=3","gravatar_id":"","url":"https://api.github.com/users/iceddev","html_url":"https://github.com/iceddev","followers_url":"https://api.github.com/users/iceddev/followers","following_url":"https://api.github.com/users/iceddev/following{/other_user}","gists_url":"https://api.github.com/users/iceddev/gists{/gist_id}","starred_url":"https://api.github.com/users/iceddev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceddev/subscriptions","organizations_url":"https://api.github.com/users/iceddev/orgs","repos_url":"https://api.github.com/users/iceddev/repos","events_url":"https://api.github.com/users/iceddev/events{/privacy}","received_events_url":"https://api.github.com/users/iceddev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iceddev/react-material-design-lite","description":"React component wrappers around Google's Material Design Lite library","fork":false,"url":"https://api.github.com/repos/iceddev/react-material-design-lite","forks_url":"https://api.github.com/repos/iceddev/react-material-design-lite/forks","keys_url":"https://api.github.com/repos/iceddev/react-material-design-lite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iceddev/react-material-design-lite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iceddev/react-material-design-lite/teams","hooks_url":"https://api.github.com/repos/iceddev/react-material-design-lite/hooks","issue_events_url":"https://api.github.com/repos/iceddev/react-material-design-lite/issues/events{/number}","events_url":"https://api.github.com/repos/iceddev/react-material-design-lite/events","assignees_url":"https://api.github.com/repos/iceddev/react-material-design-lite/assignees{/user}","branches_url":"https://api.github.com/repos/iceddev/react-material-design-lite/branches{/branch}","tags_url":"https://api.github.com/repos/iceddev/react-material-design-lite/tags","blobs_url":"https://api.github.com/repos/iceddev/react-material-design-lite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iceddev/react-material-design-lite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iceddev/react-material-design-lite/git/refs{/sha}","trees_url":"https://api.github.com/repos/iceddev/react-material-design-lite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iceddev/react-material-design-lite/statuses/{sha}","languages_url":"https://api.github.com/repos/iceddev/react-material-design-lite/languages","stargazers_url":"https://api.github.com/repos/iceddev/react-material-design-lite/stargazers","contributors_url":"https://api.github.com/repos/iceddev/react-material-design-lite/contributors","subscribers_url":"https://api.github.com/repos/iceddev/react-material-design-lite/subscribers","subscription_url":"https://api.github.com/repos/iceddev/react-material-design-lite/subscription","commits_url":"https://api.github.com/repos/iceddev/react-material-design-lite/commits{/sha}","git_commits_url":"https://api.github.com/repos/iceddev/react-material-design-lite/git/commits{/sha}","comments_url":"https://api.github.com/repos/iceddev/react-material-design-lite/comments{/number}","issue_comment_url":"https://api.github.com/repos/iceddev/react-material-design-lite/issues/comments{/number}","contents_url":"https://api.github.com/repos/iceddev/react-material-design-lite/contents/{+path}","compare_url":"https://api.github.com/repos/iceddev/react-material-design-lite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iceddev/react-material-design-lite/merges","archive_url":"https://api.github.com/repos/iceddev/react-material-design-lite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iceddev/react-material-design-lite/downloads","issues_url":"https://api.github.com/repos/iceddev/react-material-design-lite/issues{/number}","pulls_url":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls{/number}","milestones_url":"https://api.github.com/repos/iceddev/react-material-design-lite/milestones{/number}","notifications_url":"https://api.github.com/repos/iceddev/react-material-design-lite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iceddev/react-material-design-lite/labels{/name}","releases_url":"https://api.github.com/repos/iceddev/react-material-design-lite/releases{/id}","created_at":"2015-07-14T18:45:49Z","updated_at":"2015-09-07T09:59:08Z","pushed_at":"2015-09-11T01:27:08Z","git_url":"git://github.com/iceddev/react-material-design-lite.git","ssh_url":"git@github.com:iceddev/react-material-design-lite.git","clone_url":"https://github.com/iceddev/react-material-design-lite.git","svn_url":"https://github.com/iceddev/react-material-design-lite","homepage":null,"size":145,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2"},"html":{"href":"https://github.com/iceddev/react-material-design-lite/pull/2"},"issue":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/issues/2"},"comments":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/iceddev/react-material-design-lite/statuses/c9eb3c19631690247e8b540ccc431784cb7a5f72"}}}}