News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by wruza on Friday November 12, 2021 @12:20AM (#29196520)
Jsx is not js, it’s python!

  <div className={red}>
    {text}
  </div>

  import react
  react.create_element("div", {"className":red}, text)
By the same logic we could call any structured format “is js”, because it is homomorphic to some js expressions. Are xml, pug, plist, dbf, all js? Nope, it’s all python.

There are no comments on this comment yet.