4 ms·
> Can we agree that JSX is not a valid JS? Neither is rescript - so why not make jsx a first class citizen?
by MoSattler 5y ago
> Can we agree that JSX is not a valid JS?
Neither is rescript - so why not make jsx a first class citizen?
- greyblake 5y agoBecause a programming language is not a template engine.
- scrollaway 5y agoNeither is jsx. It’s just syntactic sugar for some recursive function calls.
- yawaramin 5y agoJSX is a first-class citizen in ReScript. No decorators required for JSX. Only required for React component function signature.