Hacker News new | ask | show | jobs
by MoSattler 1614 days ago
> Can we agree that JSX is not a valid JS?

Neither is rescript - so why not make jsx a first class citizen?

2 comments

JSX is a first-class citizen in ReScript. No decorators required for JSX. Only required for React component function signature.
Because a programming language is not a template engine.
Neither is jsx. It’s just syntactic sugar for some recursive function calls.