Andrey (azangru) wrote,

Tagged template literals!

They have been around for several years, yet I’ve never had an occasion to actually use them, and thus had no idea what that syntax meant. Apparently they are pretty mainstream in certain communities (e.g. ones that use graphql or styled components).

Example from Relay:

  fragment on Greetings {

Example from styled components:

  font-size: 1.5em;
  text-align: center;
  color: palevioletred;

Article on

Recent Posts from This Journal

  • (no subject)

    A good episode of the Rebel Wisdom podcast where they invited Yuri Deigin to present an argument against Bret's ideas on vaccines and ivermectin.…

  • (no subject)

    Another interesting example of a gap in sense-making. "How do you test that this is the delta variant," asks a journalist the deputy White House…

  • (no subject)

    Two clips left a particularly deep impression on me over the last couple of days. One is Pelosi's reply to a journalist: Not the first of her…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.