Server components by default — client only when needed
Only add "use client" for event handlers, useState/useEffect, browser APIs, or client-only libraries. Everything else should be a server component.
Why This Matters
Every "use client" directive adds JavaScript to the browser bundle. Unnecessary client components increase page load time and time-to-interactive.
Tags
nextjssupabaseserver-components
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.