2 ms·
Modulo performance, why not store the html string in JS if you are going to use JS anyway, and with string interpolation it is more templatey anyway.
by quickthrower2 4y ago
Modulo performance, why not store the html string in JS if you are going to use JS anyway, and with string interpolation it is more templatey anyway.
- xigoi 4y agoWith templates, you can do things like template.querySelector("label").
- quickthrower2 4y agoTrue! that would be less elegant with the string, as you would need to make it effectively into a <template> or hidden div to do such a thing.