3 ms·
> [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
by uryga 5y 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
- nauticacom 5y agoIf 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