React Fragment tag
`
You can also use the shorthand syntax for fragmnets <> </>
import {Fragment} from 'react';
App() {
return() (
<Fragment>
<div>Hello</div>
<div>Hi</div>
</Fragment>
)
}
Using <Fragment>
or the shorthand syntax allows you to group elements without introducing any extra DOM nodes.
It’s particularly useful wehn you don’t want to affect the layout or add unnecessary styles to your components.