Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

docs(nextjs): fix small example mistake (#152)

henrieaab2aad22a2
diff --git a/apps/public/content/docs/sdks/nextjs.mdx b/apps/public/content/docs/sdks/nextjs.mdx
index 6242ab156..c9b5e8f6a 100644
--- a/apps/public/content/docs/sdks/nextjs.mdx
+++ b/apps/public/content/docs/sdks/nextjs.mdx
@@ -32,7 +32,7 @@ Add `OpenPanelComponent` to your root layout component.
```tsx
import { OpenPanelComponent } from '@openpanel/nextjs';
-export default RootLayout({ children }) {
+export default function RootLayout({ children }) {
return (
<>
<OpenPanelComponent