Y
Hacker News
new
|
ask
|
show
|
jobs
by
danabramov
3125 days ago
Because you don't know where JSX ends and code begins. Don't forget that fragments can include text nodes too.
return <div />
// am I a comment? Or text after div?
1 comments
mcphage
3125 days ago
Ah, hmm... good catch.
link