forked from sairajzero/FLO_Messenger
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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']; | ||
|
@@ -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> | ||
|
||
|