DEV Community

Discussion on: <Fragment> vs <></>

Collapse
 
jackmellis profile image
Jack

<> is shorter, doesnt require a specific import, and is no harder to explain to a new developer than the fragment component.

That's why I prefer it, but in the grand scheme of things it really doesnt matter as long as you're consistent right?

Collapse
 
akashshyam profile image
Akash Shyam

Exactly, use the same thing across the whole codebase