I was missing a React Fragment:
function Bar({ children }) {
return (
<div>
{children}
</div>
);
}
function Foo() {
return (
<Bar>
<Baz/>
<Qux/>
</Bar>
);
}
The code above throws the error above. But this fixes it:
<Bar>
<>
<Baz/>
<Qux/>
</>
</Bar>