Skip to content

Commit fbae918

Browse files
Merge pull request #131 from iacore/patch-5
Document ref more prominently
2 parents 1d1b132 + cfa7372 commit fbae918

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ You can skip to details directly via the following links:
2828
* [direct](./#direct) - to assign properties
2929
* [listener](./#listener) - to add listeners
3030
* [list](./#list) - to grow or shrink a list of nodes
31+
* [ref](./#ref) - to keep references to DOM nodes
3132
* [self closing](./#self-closing) - to simplify life
3233
* [hole](./#hole) - to represent generic content
3334
* [reactivity](./#reactivity) - to understand *uhtml/reactive*
3435

3536
```
37+
let el = {}
3638
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ render
3739
┃ ┏━━━━━━━━━━━━━━━━━━━ tag
3840
render(document.body, html`
@@ -46,7 +48,8 @@ render(document.body, html`
4648
┗━━━━━━┳━━━━━┛
4749
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━ list
4850
</ul>
49-
<my-element /> ━━━━━━━━━━━━━━━━━━━━━━━━━ self closing
51+
┏━━━━━━━━━━━━━━━━━━━━━━━━━━ ref
52+
<my-element ref=${el} /> ━━━━━━━━━━━━━━━ self closing
5053
<p>
5154
${show ? `${order} results` : null}
5255
┗━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┛

0 commit comments

Comments
 (0)