3 ms·
Why not use template literals and a css like syntax for selecting and update? setContent(css`p[key=counter]{ content: 'The count is ${count}'}; }`);
by fbn79 2y ago
Why not use template literals and a css like syntax for selecting and update?
setContent(css`p[key=counter]{ content: 'The count is ${count}'}; }`);
- danielvaughn 2y agoGreat question. So right now the library is using xpath expressions under the hood, which are more powerful than css selectors because they can query for content as well.