Skip to content

Commit

Permalink
Update render.html
Browse files Browse the repository at this point in the history
  • Loading branch information
tripathyr authored Oct 18, 2023
1 parent 4ded446 commit ae3cbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/render.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<script src="https://unpkg.com/[email protected]/es.js"></script>
<script>
const { html, render } = uhtml;
const { html, render : renderElem } = uhtml;

// Data to be displayed
const items = ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry'];
Expand All @@ -34,7 +34,7 @@
// render is defined and exported from uhtml. html is also define and exported from uhtml
// Create html first, and then render it
// Creates actual HTML when render is applied to something that creates html
render(appElement, renderItems(items));
renderElem(appElement, renderItems(items));
</script>
</body>

Expand Down

0 comments on commit ae3cbc1

Please sign in to comment.