4 ms·
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
by danabramov 9y 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?
- mcphage 9y agoAh, hmm... good catch.