File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
3840render(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 ┗━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┛
You can’t perform that action at this time.
0 commit comments