Refs#
Demo#
I'm a div that is getting referenced
I should be replaced with the content of the referenced div
Explanation#
<div>
<div data-ref-foo>I'm a div that is getting referenced</div>
<div data-text="`I'm using content of '${$foo.innerHTML}'`"></div>
</div>
Adding data-ref-foo
to an element creates a signal called $foo
that points to that element.