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

Ah, hmm... good catch.