← Files FingerprintARCHIVED FILE
skills/fingerprint-nextjs/snippets/layout.tsx
487 Bytes · Oct 5, 2026 · 18:25 UTC
// app/layout.tsx — the root layout stays a server component; wrap {children} in the client
// provider so the whole app can call useVisitorData(). Mount the provider once, here only.
import { FingerprintClientProvider } from './fingerprint-provider'
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<FingerprintClientProvider>{children}</FingerprintClientProvider>
</body>
</html>
)
}
SHA-256: 6c93c6a659710a78395260ce0396fe1f4120dd0af179f7ee56b42439846c81ec