From 8e5989369bf4e97e9fb706d3db74a4f63c2d1cc3 Mon Sep 17 00:00:00 2001 From: Oliver Zheng Date: Mon, 6 Jan 2025 15:27:22 -0800 Subject: [PATCH] [ez] Remove unused variables for Next.js docs --- docs/client/javascript-mono/nextjs/_nextJSPageVsAppRouter.mdx | 3 +-- docs/client/javascript-mono/nextjs/_nextJsBootstrap.mdx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/client/javascript-mono/nextjs/_nextJSPageVsAppRouter.mdx b/docs/client/javascript-mono/nextjs/_nextJSPageVsAppRouter.mdx index 8197c3c60..af6228cf3 100644 --- a/docs/client/javascript-mono/nextjs/_nextJSPageVsAppRouter.mdx +++ b/docs/client/javascript-mono/nextjs/_nextJSPageVsAppRouter.mdx @@ -31,7 +31,7 @@ to render the `StatsigProvider` on the client side. "use client"; -import React, { useEffect } from "react"; +import React from "react"; import { LogLevel, StatsigProvider, @@ -95,7 +95,6 @@ There is a [full example](https://github.com/statsig-io/private-js-client-monore ```tsx // pages/_app.tsx -import { useEffect } from "react"; import type { AppProps } from "next/app"; import { diff --git a/docs/client/javascript-mono/nextjs/_nextJsBootstrap.mdx b/docs/client/javascript-mono/nextjs/_nextJsBootstrap.mdx index 1b3c891f5..2315363b7 100644 --- a/docs/client/javascript-mono/nextjs/_nextJsBootstrap.mdx +++ b/docs/client/javascript-mono/nextjs/_nextJsBootstrap.mdx @@ -233,7 +233,6 @@ import { useClientBootstrapInit, // <- Add this } from "@statsig/react-bindings"; import { StatsigAutoCapturePlugin } from '@statsig/web-analytics'; -import React, { useEffect } from "react"; export default function MyStatsig({ children, @@ -309,7 +308,6 @@ import { StatsigUser, } from "@statsig/react-bindings"; import { runStatsigAutoCapture } from '@statsig/web-analytics'; -import React, { useEffect } from "react"; export default function App({ Component, pageProps }: AppProps) { const clientRef = useRef();