But while experimenting with adding “binding” sema...
# kweb
i
But while experimenting with adding “binding” semantics using Shoebox I realized that there needs to be a convenient way to add an element as a child at a specified position relative to other sibling elements. My initial thought was to add an optional
position
parameter to the
createElement()
function, and then add a corresponding
position
parameter to
h1()
,
p()
and all of the other element creation helpers (these just pass the position through to
createElement()
.