Y
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
yawaramin
1614 days ago
JSX is a first-class citizen in ReScript. No decorators required for JSX. Only required for React component function signature.
link
greyblake
1614 days ago
Because a programming language is not a template engine.
link
scrollaway
1614 days ago
Neither is jsx. It’s just syntactic sugar for some recursive function calls.
link