Closed
Description
Describe the feature you'd like:
As a user of react 18 with NextJS (with app directory), I would like to test routLayout.tsx file without having this warning : Warning: validateDOMNesting(...): <html> cannot appear as a child of <div>. at html at children
//routLayout.tsx:
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="fr" data-testid="rout-layout">
<body className={inter.className}>{children}</body>
</html>
);
}
Suggested implementation:
Maybe by modifying the container options
Thank you so much for your help
Metadata
Metadata
Assignees
Labels
No labels