sanjar-notes / frontend

The basics - HTML, CSS, Javascript, browser APIs, performance
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.