Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bafe
on Aug 15, 2023
|
parent
|
context
|
favorite
| on:
Things you forgot (or never knew) because of React
Once you try any languages where (almost) anything is an expression, it is hard to accept statement-oriented languages
the_gipsy
on Aug 15, 2023
[–]
That's true. But in JSX you have the extra constraint that you can't really use imperative code so this magnifies even more.
bafe
on Aug 17, 2023
|
parent
[–]
Indeed, having if-then-else being an expression (as well as switch) would be great in JSX. It seems there's a proposal for a match expression in TC39...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: