Hacker News new | ask | show | jobs
by uryga 1672 days ago
> [React] requires compilation

technically, but not in the same way e.g. Svelte does. the syntax used by React, JSX, is simple local syntactic sugar:

  <Foo x={a} y={b}>...</Foo>
  // ↓
  createElement(Foo, { x: a, y: b }, ...)
i.e. basically a macro, no real "compiling" going on
1 comments

If you need to run it through a "transform" step, in this context, it's compiling. What it ultimately gets transformed to, and the implications of that, is a different discussion