Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
MoSattler
· 4y ago · 0 comments
> Can we agree that JSX is not a valid JS?
Neither is rescript - so why not make jsx a first class citizen?
Comments
[–]
yawaramin
4y ago
JSX is a first-class citizen in ReScript. No decorators required for JSX. Only required for React component function signature.
[–]
greyblake
4y ago
Because a programming language is not a template engine.
[–]
scrollaway
4y ago
Neither is jsx. It’s just syntactic sugar for some recursive function calls.