sanjar-notes / web_dev_fundamentals

The basics - HTML, CSS, Javascript and more
https://sanjar-notes.github.io/web_dev_fundamentals/
3 stars 0 forks source link

tagged templates literals in JS #95

Open sanjarcode opened 1 year ago

sanjarcode commented 1 year ago

https://www.zachsnoek.com/blog/understanding-tagged-template-literals-in-javascript

I saw this today, and though "this isn't valid JS" (Babel config is required). Turns out I've already used it (styledcomponents lib).

It is valid JS.