Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
loreanvictor committed Oct 9, 2023
1 parent 5fa0a97 commit c76e06d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -138,6 +138,7 @@ document.body.append(html`
>
> [**re**htm](.) creates [HTML templates](https://www.w3schools.com/tags/tag_template.asp) for any string literal and reuses them
> when possible. The following elements are all constructed from the same template:
>
> ```js
> html`<div class=${'foo'}>Hellow ${'World'}</div>`
> html`<div class=${'bar'}>Hellow ${'Welt'}</div>`
Expand Down Expand Up @@ -213,7 +214,9 @@ tmpl.create('Jack')

<br>

> 💡 `html` template tag also creates templates and uses `.create()` method to generate elements. It caches each template based on its string parts, and reloads the same template the next time it comes upon the same string bits.
> **NOTE**
>
> `html` template tag also creates templates and uses `.create()` method to generate elements. It caches each template based on its string parts, and reloads the same template the next time it comes upon the same string bits.
<br>

Expand Down

0 comments on commit c76e06d

Please sign in to comment.