Ensure that isMounted is not used in React components. This method is deprecated and can cause unreliable state updates. Suggest using cleanup functions or useRef instead.
maintainabilitystack-react+1
Low
String references should not be used
Ensure that string refs are not used in React. String refs are deprecated, make components harder to maintain, and reduce composability. Recommend using function-based refs instead.
maintainabilitystack-react
Low
Use generateStaticParams for SSG on dynamic routes
When statically prebuilding dynamic segments, implement generateStaticParams and validate params; fall back to notFound() for invalid slugs.
stack-nextjsstack-react+2
Low
Use Metadata API instead of <Head>
Declare SEO metadata via export const metadata or generateMetadata; avoid manual <Head> in App Router.
stack-nextjsstack-react+2
Low
Use next/font for fonts (no <link> to external CDNs)
Load fonts via next/font (google or local) and apply on html/body; avoid runtime <link> to fonts that cause FOUT/CLS.
stack-nextjsstack-react+2
Low
Use next/script safely and avoid inline scripts
For third-party scripts, use <Script> with an appropriate strategy and onLoad callbacks. Avoid dangerouslySetInnerHTML for scripts.
stack-nextjsstack-react+2
Low
Use redirect() and notFound() from next/navigation
Prefer redirect() and notFound() over manual 302/404 handling and custom components in App Router.