|
|
|
|
|
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 |
|