diff --git a/docs/react/use-with-next.en-US.md b/docs/react/use-with-next.en-US.md index bf433455c6..58b9457547 100644 --- a/docs/react/use-with-next.en-US.md +++ b/docs/react/use-with-next.en-US.md @@ -175,8 +175,8 @@ import { createCache, extractStyle, StyleProvider } from '@ant-design/cssinjs'; import type Entity from '@ant-design/cssinjs/es/Cache'; import { useServerInsertedHTML } from 'next/navigation'; -const StyledComponentsRegistry = ({ children }: { children: React.ReactNode }) => { - const cache = React.useMemo(() => createCache(), [createCache]); +const StyledComponentsRegistry = ({ children }: React.PropsWithChildren) => { + const cache = React.useMemo(() => createCache(), []); useServerInsertedHTML(() => (