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 ruleP2universalStack: React
propsexplicitness
Pass required boolean props explicitly rather than relying on defaults
When a component expects a control flag like isHidden, pass it explicitly so behavior is clear and intentional.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetsx
| 1 | <Component /> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | <Component isHidden={false} /> |
Explanation (EN)
Objašnjenje (HR)