Open bredele opened 9 years ago
An id should be declared once. It does not make any sense to interpolate it and we could use it as a uniq ref.
var comp = dom('ul', [ dom('li'. { id: 'item' }); ]); comp.item; // => <li id="item"></li>
we could also use the ref keyword like react:
var comp = dom('ul', [ dom('li'. { ref: 'item' }); ]);
An id should be declared once. It does not make any sense to interpolate it and we could use it as a uniq ref.