Is there any difference between returning React.Fragment
function Foo(){
return (
<>
<div>hey</div>
<div>hey</div>
</>
)
}
Or return an array of components
function Bar(){
return (
[
<div>hey</div>,
<div>hey</div>,
]
)
}
?
Here is a codesandbox for example.