• jana@leminal.space
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    9 months ago

    JSX can exist without React; it’s essentially just an alternative syntax for function calls.

    (That is, annoyingly, handicapped in the Typescript checker)

    • CannotSleep420@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 months ago

      Solid uses JSX and is both much more performant than React while removing several of it’s footguns. You also have WASM frameworks like Leptos that use similar syntax (RSX) while using languages that aren’t JS.

    • naught@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      9 months ago

      Very true! Shouldnt be a point for react i guess. I believe they originated the syntax perhaps? Regardless, I love it (: