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 ruleP1project specificStack: react
registrationhydrationcomponentswiring
Register new client components in the shared component index
Add a newly created client-hydrated component to the central component registry so it actually mounts.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetypescript
| 1 | // new PackageTypeArticles.tsx created but never registered |
| 2 | // componentIndex.ts unchanged |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | // componentIndex.ts |
| 2 | export { PackageTypeArticles } from './components/PackageTypeArticles'; |
Explanation (EN)
Objašnjenje (HR)