Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2stack specificStack: react
nextjsrsccleanup
Don't repeat 'use client' on children of a client component
A component rendered as a child of a client component is already client; the directive is redundant.
PR: hegnar-forum-web · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codetsx
| 1 | 'use client'; // in a component only rendered inside another client component |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | // no directive needed; parent already marks the client boundary |
Explanation (EN)
Objašnjenje (HR)