Closed JSideris closed 5 months ago
Rather than using dot.h to render components and HTML, get rid of it, and just make everything callable.
So to add a component after a div, you could do:
dot.div()(myComponent)
Or to render the component at a target:
dot("#target")(myComponent)
Cool idea but too much of a pain to build. The existing solution of .text, .html, .mount (newly added), etc work.
Rather than using dot.h to render components and HTML, get rid of it, and just make everything callable.
So to add a component after a div, you could do:
dot.div()(myComponent)
Or to render the component at a target:
dot("#target")(myComponent)