Skip to content

Commit

Permalink
Update docs using correct types for render
Browse files Browse the repository at this point in the history
  • Loading branch information
williammartin committed Feb 28, 2023
1 parent cd2c17e commit 83fa8cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/_guide/rendering-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class HelloWorldElement extends HTMLElement {
}

attributeChangedCallback() {
render(() => html`
render(html`
<div>
Hello <span>${ this.name }</span>
</div>`,
Expand Down Expand Up @@ -125,7 +125,7 @@ class HelloWorldElement extends HTMLElement {
}

update() {
render(() => html`
render(html`
<div>
Hello <span>${ this.#name }</span>
</div>`,
Expand Down
4 changes: 2 additions & 2 deletions docs/_guide/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class HelloWorldElement extends HTMLElement {
}

attributeChangedCallback() {
render(() => html`
render(html`
<div>
Hello <span>${ this.name }</span>
</div>`,
Expand Down Expand Up @@ -102,7 +102,7 @@ class HelloWorldElement extends HTMLElement {
}

update() {
render(() => html`
render(html`
<div>
Hello <span>${ this.#name }</span>
</div>`,
Expand Down

0 comments on commit 83fa8cb

Please sign in to comment.