|
|
|
|
|
by acdlite
3129 days ago
|
|
> The Fragment syntax adds some additional magic to JSX (which is rarely a good thing) In: <></> Out: <React.Fragment></React.Fragment> WITCHCRAFT!! SORCERY!! Teasing aside, I don't get what's magical about this. It's a straightforward transform. You can call that "magic," I'll call it "syntax." |
|
Taking your example when putting it in front of someone seeing it for the first time:
In: <></>
Out (Newcomer): WTF does that mean? Did someone forget to put something in those tags?