20 ms·
I dodged this bullet, because the first time I needed a string with two dynamic parts, was in an attribute. This doesn't work: <h1 className='{a} {b}'>...
by k__ 11y ago
I dodged this bullet, because the first time I needed a string with two dynamic parts, was in an attribute.
This doesn't work:
<h1 className='{a} {b}'>...</h1>
So I did this:
<h1 className={`${a} ${b}`}>...</h1>
And then simply used this style everywhere, because it worked for text-nodes and attributes.