Earlier quoted context omitted.
No, that's incorrect. Interpolations (${}) are preserved. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Let's return to the original statement, shall we? > These are tagged templates, not strings. They work as code at runtime, and it already has support to optimize it, compile it, etc. So. How exactly do they "work as code" and "have support to optimize it, compile it, etc."? Here's HTM's main function https://github.com/developit/htm/blob/master/src/index.mjs#L... It: concatenates strings, parses (via regexes), then c…
Secondly, the answer is Babel. Since the string's components are part of the AST, it can optimize and compile it as the original poster claimed.