{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/lit-element/pulls/comments/225468458","pull_request_review_id":165071061,"id":225468458,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTQ2ODQ1OA==","diff_hunk":"@@ -0,0 +1,93 @@\n+---\n+layout: post\n+title: Introducing lit-element\n+---\n+\n+lit-element is a light-weight library for creating custom elements with lit-html.\n+\n+Making custom elements is easy with lit-element:\n+\n+* [Write element templates in plain HTML.](introduction/)\n+* [React to property changes.](changes)\n+* [Use simple JavaScript expressions for loops and conditionals.](expressions)\n+* [Add event listeners in plain HTML.](listeners)\n+\n+<a id=\"plain\"></a>\n+\n+## Write element templates in plain HTML\n+\n+Write your element templates in plain HTML. Use JavaScript expressions to insert data:\n+\n+```js\n+//custom-element.js \n+\n+render(){\n+  return html`\n+    <h1>${this.headingText}</h1>\n+  `;\n+}\n+```\n+\n+<a id=\"changes\"></a>\n+\n+## React to property changes\n+\n+Create custom elements that update on property changes. lit-element creates DOM once, then re-renders only the stuff that changed - making DOM updates lightning-fast.\n+\n+```js\n+static get properties(){\n+  return {\n+    myProp: String\n+  }  \n+}\n+constructor(){\n+  super();\n+  this.myProp='there';\n+  this.setTimeout(() => {\n+    this.myProp='world';\n+  }, 3000);\n+}\n+render(){\n+  return html`\n+    <p>hello ${this.myProp}</p>\n+  `;\n+}\n+```\n+\n+<a id=\"expressions\"></a>\n+\n+## Use simple JavaScript expressions for loops and conditionals\n+\n+Handling conditionals and loops in your lit-element templates is easy. No special annotations, just plain JavaScript expressions:\n+\n+```js\n+render(){\n+  return html`\n+    <ul>\n+      ${myArray.map(i => html`<li>${i}</li>`)}\n+    </ul>\n+    ${myBool?\n+      html`<p>Render some HTML if myBool is true</p>`:\n+      html`<p>Render some other HTML if myBool is false</p>`}\n+  `;\n+}\n+```\n+\n+\n+<a id=\"listeners\"></a>\n+\n+## Add event listeners in plain HTML\n+\n+Use JavaScript expressions to add event listeners in plain HTML:\n+\n+```js\n+render({}){","path":"docs/_introduction.md","position":84,"original_position":84,"commit_id":"e205f51b67bda647001248afa43545b28c8135a4","original_commit_id":"e205f51b67bda647001248afa43545b28c8135a4","user":{"login":"kenchris","id":1101339,"node_id":"MDQ6VXNlcjExMDEzMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1101339?v=4","gravatar_id":"","url":"https://api.github.com/users/kenchris","html_url":"https://github.com/kenchris","followers_url":"https://api.github.com/users/kenchris/followers","following_url":"https://api.github.com/users/kenchris/following{/other_user}","gists_url":"https://api.github.com/users/kenchris/gists{/gist_id}","starred_url":"https://api.github.com/users/kenchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenchris/subscriptions","organizations_url":"https://api.github.com/users/kenchris/orgs","repos_url":"https://api.github.com/users/kenchris/repos","events_url":"https://api.github.com/users/kenchris/events{/privacy}","received_events_url":"https://api.github.com/users/kenchris/received_events","type":"User","site_admin":false},"body":"I don't think render takes arguments anymore","created_at":"2018-10-16T09:41:19Z","updated_at":"2018-10-16T09:41:19Z","html_url":"https://github.com/Polymer/lit-element/pull/263#discussion_r225468458","pull_request_url":"https://api.github.com/repos/Polymer/lit-element/pulls/263","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Polymer/lit-element/pulls/comments/225468458"},"html":{"href":"https://github.com/Polymer/lit-element/pull/263#discussion_r225468458"},"pull_request":{"href":"https://api.github.com/repos/Polymer/lit-element/pulls/263"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/lit-element/pulls/263","id":223144888,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMTQ0ODg4","html_url":"https://github.com/Polymer/lit-element/pull/263","diff_url":"https://github.com/Polymer/lit-element/pull/263.diff","patch_url":"https://github.com/Polymer/lit-element/pull/263.patch","issue_url":"https://api.github.com/repos/Polymer/lit-element/issues/263","number":263,"state":"open","locked":false,"title":"add docs","user":{"login":"katejeffreys","id":22203617,"node_id":"MDQ6VXNlcjIyMjAzNjE3","avatar_url":"https://avatars3.githubusercontent.com/u/22203617?v=4","gravatar_id":"","url":"https://api.github.com/users/katejeffreys","html_url":"https://github.com/katejeffreys","followers_url":"https://api.github.com/users/katejeffreys/followers","following_url":"https://api.github.com/users/katejeffreys/following{/other_user}","gists_url":"https://api.github.com/users/katejeffreys/gists{/gist_id}","starred_url":"https://api.github.com/users/katejeffreys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katejeffreys/subscriptions","organizations_url":"https://api.github.com/users/katejeffreys/orgs","repos_url":"https://api.github.com/users/katejeffreys/repos","events_url":"https://api.github.com/users/katejeffreys/events{/privacy}","received_events_url":"https://api.github.com/users/katejeffreys/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-16T07:40:58Z","updated_at":"2018-10-16T09:41:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e23db3b859ecfd5541fc67297ae5dcaba5decf74","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sorvell","id":78891,"node_id":"MDQ6VXNlcjc4ODkx","avatar_url":"https://avatars1.githubusercontent.com/u/78891?v=4","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/lit-element/pulls/263/commits","review_comments_url":"https://api.github.com/repos/Polymer/lit-element/pulls/263/comments","review_comment_url":"https://api.github.com/repos/Polymer/lit-element/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/lit-element/issues/263/comments","statuses_url":"https://api.github.com/repos/Polymer/lit-element/statuses/e205f51b67bda647001248afa43545b28c8135a4","head":{"label":"Polymer:docs","ref":"docs","sha":"e205f51b67bda647001248afa43545b28c8135a4","user":{"login":"Polymer","id":2159051,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTkwNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2159051?v=4","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":102217920,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIyMTc5MjA=","name":"lit-element","full_name":"Polymer/lit-element","private":false,"owner":{"login":"Polymer","id":2159051,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTkwNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2159051?v=4","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Polymer/lit-element","description":"An ultra-light custom element base class with a simple but expressive API","fork":false,"url":"https://api.github.com/repos/Polymer/lit-element","forks_url":"https://api.github.com/repos/Polymer/lit-element/forks","keys_url":"https://api.github.com/repos/Polymer/lit-element/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/lit-element/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/lit-element/teams","hooks_url":"https://api.github.com/repos/Polymer/lit-element/hooks","issue_events_url":"https://api.github.com/repos/Polymer/lit-element/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/lit-element/events","assignees_url":"https://api.github.com/repos/Polymer/lit-element/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/lit-element/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/lit-element/tags","blobs_url":"https://api.github.com/repos/Polymer/lit-element/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/lit-element/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/lit-element/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/lit-element/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/lit-element/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/lit-element/languages","stargazers_url":"https://api.github.com/repos/Polymer/lit-element/stargazers","contributors_url":"https://api.github.com/repos/Polymer/lit-element/contributors","subscribers_url":"https://api.github.com/repos/Polymer/lit-element/subscribers","subscription_url":"https://api.github.com/repos/Polymer/lit-element/subscription","commits_url":"https://api.github.com/repos/Polymer/lit-element/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/lit-element/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/lit-element/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/lit-element/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/lit-element/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/lit-element/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/lit-element/merges","archive_url":"https://api.github.com/repos/Polymer/lit-element/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/lit-element/downloads","issues_url":"https://api.github.com/repos/Polymer/lit-element/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/lit-element/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/lit-element/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/lit-element/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/lit-element/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/lit-element/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/lit-element/deployments","created_at":"2017-09-02T19:09:16Z","updated_at":"2018-10-16T09:17:00Z","pushed_at":"2018-10-16T07:40:59Z","git_url":"git://github.com/Polymer/lit-element.git","ssh_url":"git@github.com:Polymer/lit-element.git","clone_url":"https://github.com/Polymer/lit-element.git","svn_url":"https://github.com/Polymer/lit-element","homepage":"","size":1162,"stargazers_count":799,"watchers_count":799,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":90,"open_issues":58,"watchers":799,"default_branch":"master"}},"base":{"label":"Polymer:master","ref":"master","sha":"4a380544408d82be639a42103532198ad77736b5","user":{"login":"Polymer","id":2159051,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTkwNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2159051?v=4","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":102217920,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIyMTc5MjA=","name":"lit-element","full_name":"Polymer/lit-element","private":false,"owner":{"login":"Polymer","id":2159051,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTkwNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/2159051?v=4","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Polymer/lit-element","description":"An ultra-light custom element base class with a simple but expressive API","fork":false,"url":"https://api.github.com/repos/Polymer/lit-element","forks_url":"https://api.github.com/repos/Polymer/lit-element/forks","keys_url":"https://api.github.com/repos/Polymer/lit-element/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/lit-element/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/lit-element/teams","hooks_url":"https://api.github.com/repos/Polymer/lit-element/hooks","issue_events_url":"https://api.github.com/repos/Polymer/lit-element/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/lit-element/events","assignees_url":"https://api.github.com/repos/Polymer/lit-element/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/lit-element/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/lit-element/tags","blobs_url":"https://api.github.com/repos/Polymer/lit-element/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/lit-element/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/lit-element/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/lit-element/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/lit-element/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/lit-element/languages","stargazers_url":"https://api.github.com/repos/Polymer/lit-element/stargazers","contributors_url":"https://api.github.com/repos/Polymer/lit-element/contributors","subscribers_url":"https://api.github.com/repos/Polymer/lit-element/subscribers","subscription_url":"https://api.github.com/repos/Polymer/lit-element/subscription","commits_url":"https://api.github.com/repos/Polymer/lit-element/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/lit-element/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/lit-element/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/lit-element/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/lit-element/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/lit-element/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/lit-element/merges","archive_url":"https://api.github.com/repos/Polymer/lit-element/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/lit-element/downloads","issues_url":"https://api.github.com/repos/Polymer/lit-element/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/lit-element/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/lit-element/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/lit-element/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/lit-element/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/lit-element/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/lit-element/deployments","created_at":"2017-09-02T19:09:16Z","updated_at":"2018-10-16T09:17:00Z","pushed_at":"2018-10-16T07:40:59Z","git_url":"git://github.com/Polymer/lit-element.git","ssh_url":"git@github.com:Polymer/lit-element.git","clone_url":"https://github.com/Polymer/lit-element.git","svn_url":"https://github.com/Polymer/lit-element","homepage":"","size":1162,"stargazers_count":799,"watchers_count":799,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":90,"open_issues":58,"watchers":799,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/lit-element/pulls/263"},"html":{"href":"https://github.com/Polymer/lit-element/pull/263"},"issue":{"href":"https://api.github.com/repos/Polymer/lit-element/issues/263"},"comments":{"href":"https://api.github.com/repos/Polymer/lit-element/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/lit-element/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/lit-element/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/lit-element/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/lit-element/statuses/e205f51b67bda647001248afa43545b28c8135a4"}},"author_association":"NONE"}}
{"actor":{"display_login":"kenchris"}}