mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
If an ESM module only includes a `'use client'` directive and no exports, which is the case for one of the modules that are included in `@chakra-ui/system` for example, we must not try to add `registerClientReference` statements for this module. This is a regression from #71968. fixes #72358 closes #72359
9 lines
174 B
TypeScript
9 lines
174 B
TypeScript
import { ReactNode } from 'react'
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|