This is just one example of the issue, I am able to create the issue using many elements. When replacing child components of a element what is the correct approach so as not to get Invalid prop children supplied to `ForwardRef?
const dynamicJSX = () => {
return (
<div>Working</div>
)
}
return (
<Grid container >
<Grid item >
{dynamicJSX}
</Grid>
</Grid>
)