Update render.html

This commit is contained in:
tripathyr 2023-10-18 12:50:25 +05:30 committed by GitHub
parent 4ded44688a
commit ae3cbc1456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
<script src="https://unpkg.com/uhtml@3.0.1/es.js"></script>
<script>
const { html, render } = uhtml;
const { html, render : renderElem } = uhtml;
// Data to be displayed
const items = ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry'];
@ -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>