Error: Objects are not valid as a React child (found: object with keys {closed}). If you meant to render a collection of children, use an array instead. for passing componet as prop code example
Example: objects are not valid as a react child
// You can't make App an async function... promises must be resolved other ways
// BAD
const App = async () => {
const auth = await somePromise();
return (
<></>
);
}