{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react/pulls/comments/65625655","id":65625655,"diff_hunk":"@@ -0,0 +1,23 @@\n+'use strict';\n+\n+var React = require('react');\n+var ReactDOM = require('react-dom');\n+\n+var ExampleApplication = React.createClass({\n+  render: function() {\n+    var elapsed = Math.round(this.props.elapsed  / 100);\n+    var seconds = elapsed / 10 + (elapsed % 10 ? '' : '.0' );\n+    var message = 'React has been successfully running for ' + seconds + ' seconds.';\n+\n+    return (<p>{message}</p>);\n+  }\n+});\n+\n+var start = new Date().getTime();\n+\n+setInterval(function() {","path":"examples/basic-webpack/index.jsx","position":18,"original_position":18,"commit_id":"df786e7553ba1f4c1eb45daf4832f8ad623d8b46","original_commit_id":"df786e7553ba1f4c1eb45daf4832f8ad623d8b46","user":{"login":"jimfb","id":9595985,"avatar_url":"https://avatars.githubusercontent.com/u/9595985?v=3","gravatar_id":"","url":"https://api.github.com/users/jimfb","html_url":"https://github.com/jimfb","followers_url":"https://api.github.com/users/jimfb/followers","following_url":"https://api.github.com/users/jimfb/following{/other_user}","gists_url":"https://api.github.com/users/jimfb/gists{/gist_id}","starred_url":"https://api.github.com/users/jimfb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimfb/subscriptions","organizations_url":"https://api.github.com/users/jimfb/orgs","repos_url":"https://api.github.com/users/jimfb/repos","events_url":"https://api.github.com/users/jimfb/events{/privacy}","received_events_url":"https://api.github.com/users/jimfb/received_events","type":"User","site_admin":false},"body":"@keyanzhang Calling `ReactDOM.render` multiple times is not an anti-pattern.  In fact, if anything, calling setState would be the antipattern.  Ideally your components could all be stateless functions (ie. which have no `setState` function) and all your data would live in a flux store or something.","created_at":"2016-06-02T21:53:56Z","updated_at":"2016-06-02T21:53:56Z","html_url":"https://github.com/facebook/react/pull/6925#discussion_r65625655","pull_request_url":"https://api.github.com/repos/facebook/react/pulls/6925","_links":{"self":{"href":"https://api.github.com/repos/facebook/react/pulls/comments/65625655"},"html":{"href":"https://github.com/facebook/react/pull/6925#discussion_r65625655"},"pull_request":{"href":"https://api.github.com/repos/facebook/react/pulls/6925"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react/pulls/6925","id":71940375,"html_url":"https://github.com/facebook/react/pull/6925","diff_url":"https://github.com/facebook/react/pull/6925.diff","patch_url":"https://github.com/facebook/react/pull/6925.patch","issue_url":"https://api.github.com/repos/facebook/react/issues/6925","number":6925,"state":"open","locked":false,"title":"Basic react & webpack example","user":{"login":"zarkoselak","id":7656256,"avatar_url":"https://avatars.githubusercontent.com/u/7656256?v=3","gravatar_id":"","url":"https://api.github.com/users/zarkoselak","html_url":"https://github.com/zarkoselak","followers_url":"https://api.github.com/users/zarkoselak/followers","following_url":"https://api.github.com/users/zarkoselak/following{/other_user}","gists_url":"https://api.github.com/users/zarkoselak/gists{/gist_id}","starred_url":"https://api.github.com/users/zarkoselak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarkoselak/subscriptions","organizations_url":"https://api.github.com/users/zarkoselak/orgs","repos_url":"https://api.github.com/users/zarkoselak/repos","events_url":"https://api.github.com/users/zarkoselak/events{/privacy}","received_events_url":"https://api.github.com/users/zarkoselak/received_events","type":"User","site_admin":false},"body":"React and webpack example based on @andreypopp basic-commonjs example ","created_at":"2016-05-30T21:54:47Z","updated_at":"2016-06-02T21:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99b8712f36c1482f989a9058db460beb72fd610d","assignee":null,"milestone":{"url":"https://api.github.com/repos/facebook/react/milestones/25","html_url":"https://github.com/facebook/react/milestones/15-next","labels_url":"https://api.github.com/repos/facebook/react/milestones/25/labels","id":1691310,"number":25,"title":"15-next","description":"We'll use this milestone to collect all PRs that will be shipped in a version of React v15. As they are cherry-picked to the branch, we will determine what version the next release is (minor or patch) based on the changes.\r\n\r\nWe will create a new milestone and move PRs to that milestone as they are cherry-picked.","creator":{"login":"zpao","id":8445,"avatar_url":"https://avatars.githubusercontent.com/u/8445?v=3","gravatar_id":"","url":"https://api.github.com/users/zpao","html_url":"https://github.com/zpao","followers_url":"https://api.github.com/users/zpao/followers","following_url":"https://api.github.com/users/zpao/following{/other_user}","gists_url":"https://api.github.com/users/zpao/gists{/gist_id}","starred_url":"https://api.github.com/users/zpao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zpao/subscriptions","organizations_url":"https://api.github.com/users/zpao/orgs","repos_url":"https://api.github.com/users/zpao/repos","events_url":"https://api.github.com/users/zpao/events{/privacy}","received_events_url":"https://api.github.com/users/zpao/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":70,"state":"open","created_at":"2016-04-08T00:06:43Z","updated_at":"2016-06-02T00:14:30Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/facebook/react/pulls/6925/commits","review_comments_url":"https://api.github.com/repos/facebook/react/pulls/6925/comments","review_comment_url":"https://api.github.com/repos/facebook/react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react/issues/6925/comments","statuses_url":"https://api.github.com/repos/facebook/react/statuses/df786e7553ba1f4c1eb45daf4832f8ad623d8b46","head":{"label":"zarkoselak:basic-webpack","ref":"basic-webpack","sha":"df786e7553ba1f4c1eb45daf4832f8ad623d8b46","user":{"login":"zarkoselak","id":7656256,"avatar_url":"https://avatars.githubusercontent.com/u/7656256?v=3","gravatar_id":"","url":"https://api.github.com/users/zarkoselak","html_url":"https://github.com/zarkoselak","followers_url":"https://api.github.com/users/zarkoselak/followers","following_url":"https://api.github.com/users/zarkoselak/following{/other_user}","gists_url":"https://api.github.com/users/zarkoselak/gists{/gist_id}","starred_url":"https://api.github.com/users/zarkoselak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarkoselak/subscriptions","organizations_url":"https://api.github.com/users/zarkoselak/orgs","repos_url":"https://api.github.com/users/zarkoselak/repos","events_url":"https://api.github.com/users/zarkoselak/events{/privacy}","received_events_url":"https://api.github.com/users/zarkoselak/received_events","type":"User","site_admin":false},"repo":{"id":60012158,"name":"react","full_name":"zarkoselak/react","owner":{"login":"zarkoselak","id":7656256,"avatar_url":"https://avatars.githubusercontent.com/u/7656256?v=3","gravatar_id":"","url":"https://api.github.com/users/zarkoselak","html_url":"https://github.com/zarkoselak","followers_url":"https://api.github.com/users/zarkoselak/followers","following_url":"https://api.github.com/users/zarkoselak/following{/other_user}","gists_url":"https://api.github.com/users/zarkoselak/gists{/gist_id}","starred_url":"https://api.github.com/users/zarkoselak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarkoselak/subscriptions","organizations_url":"https://api.github.com/users/zarkoselak/orgs","repos_url":"https://api.github.com/users/zarkoselak/repos","events_url":"https://api.github.com/users/zarkoselak/events{/privacy}","received_events_url":"https://api.github.com/users/zarkoselak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zarkoselak/react","description":"A declarative, efficient, and flexible JavaScript library for building user interfaces.","fork":true,"url":"https://api.github.com/repos/zarkoselak/react","forks_url":"https://api.github.com/repos/zarkoselak/react/forks","keys_url":"https://api.github.com/repos/zarkoselak/react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zarkoselak/react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zarkoselak/react/teams","hooks_url":"https://api.github.com/repos/zarkoselak/react/hooks","issue_events_url":"https://api.github.com/repos/zarkoselak/react/issues/events{/number}","events_url":"https://api.github.com/repos/zarkoselak/react/events","assignees_url":"https://api.github.com/repos/zarkoselak/react/assignees{/user}","branches_url":"https://api.github.com/repos/zarkoselak/react/branches{/branch}","tags_url":"https://api.github.com/repos/zarkoselak/react/tags","blobs_url":"https://api.github.com/repos/zarkoselak/react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zarkoselak/react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zarkoselak/react/git/refs{/sha}","trees_url":"https://api.github.com/repos/zarkoselak/react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zarkoselak/react/statuses/{sha}","languages_url":"https://api.github.com/repos/zarkoselak/react/languages","stargazers_url":"https://api.github.com/repos/zarkoselak/react/stargazers","contributors_url":"https://api.github.com/repos/zarkoselak/react/contributors","subscribers_url":"https://api.github.com/repos/zarkoselak/react/subscribers","subscription_url":"https://api.github.com/repos/zarkoselak/react/subscription","commits_url":"https://api.github.com/repos/zarkoselak/react/commits{/sha}","git_commits_url":"https://api.github.com/repos/zarkoselak/react/git/commits{/sha}","comments_url":"https://api.github.com/repos/zarkoselak/react/comments{/number}","issue_comment_url":"https://api.github.com/repos/zarkoselak/react/issues/comments{/number}","contents_url":"https://api.github.com/repos/zarkoselak/react/contents/{+path}","compare_url":"https://api.github.com/repos/zarkoselak/react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zarkoselak/react/merges","archive_url":"https://api.github.com/repos/zarkoselak/react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zarkoselak/react/downloads","issues_url":"https://api.github.com/repos/zarkoselak/react/issues{/number}","pulls_url":"https://api.github.com/repos/zarkoselak/react/pulls{/number}","milestones_url":"https://api.github.com/repos/zarkoselak/react/milestones{/number}","notifications_url":"https://api.github.com/repos/zarkoselak/react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zarkoselak/react/labels{/name}","releases_url":"https://api.github.com/repos/zarkoselak/react/releases{/id}","deployments_url":"https://api.github.com/repos/zarkoselak/react/deployments","created_at":"2016-05-30T13:28:55Z","updated_at":"2016-05-30T13:28:59Z","pushed_at":"2016-06-02T21:33:34Z","git_url":"git://github.com/zarkoselak/react.git","ssh_url":"git@github.com:zarkoselak/react.git","clone_url":"https://github.com/zarkoselak/react.git","svn_url":"https://github.com/zarkoselak/react","homepage":"https://facebook.github.io/react/","size":92125,"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":"facebook:master","ref":"master","sha":"97b44085ffc2308f0003f37b606d1c2fb93da78f","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":10270250,"name":"react","full_name":"facebook/react","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react","description":"A declarative, efficient, and flexible JavaScript library for building user interfaces.","fork":false,"url":"https://api.github.com/repos/facebook/react","forks_url":"https://api.github.com/repos/facebook/react/forks","keys_url":"https://api.github.com/repos/facebook/react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react/teams","hooks_url":"https://api.github.com/repos/facebook/react/hooks","issue_events_url":"https://api.github.com/repos/facebook/react/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react/events","assignees_url":"https://api.github.com/repos/facebook/react/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react/tags","blobs_url":"https://api.github.com/repos/facebook/react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react/languages","stargazers_url":"https://api.github.com/repos/facebook/react/stargazers","contributors_url":"https://api.github.com/repos/facebook/react/contributors","subscribers_url":"https://api.github.com/repos/facebook/react/subscribers","subscription_url":"https://api.github.com/repos/facebook/react/subscription","commits_url":"https://api.github.com/repos/facebook/react/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react/merges","archive_url":"https://api.github.com/repos/facebook/react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react/downloads","issues_url":"https://api.github.com/repos/facebook/react/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/react/deployments","created_at":"2013-05-24T16:15:54Z","updated_at":"2016-06-02T21:36:48Z","pushed_at":"2016-06-02T21:33:37Z","git_url":"git://github.com/facebook/react.git","ssh_url":"git@github.com:facebook/react.git","clone_url":"https://github.com/facebook/react.git","svn_url":"https://github.com/facebook/react","homepage":"https://facebook.github.io/react/","size":114795,"stargazers_count":43054,"watchers_count":43054,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7340,"mirror_url":null,"open_issues_count":568,"forks":7340,"open_issues":568,"watchers":43054,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react/pulls/6925"},"html":{"href":"https://github.com/facebook/react/pull/6925"},"issue":{"href":"https://api.github.com/repos/facebook/react/issues/6925"},"comments":{"href":"https://api.github.com/repos/facebook/react/issues/6925/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react/pulls/6925/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react/pulls/6925/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react/statuses/df786e7553ba1f4c1eb45daf4832f8ad623d8b46"}}}}
{"actor":{"display_login":"jimfb"}}