JSideris / DOThtml

A human-friendly way to build highly-dynamic web pages in pure JavaScript.
2 stars 4 forks source link

The `mount` should be optional when returning a component from a `each` or conditional. #182

Open JSideris opened 2 months ago

JSideris commented 2 months ago

For example:

dot.each(this.values, (m)=>{
    return dot.mount(new DisplayRow(m));
})

Should be achievable with

dot.each(this.values, (m)=>{
    return new DisplayRow(m);
})