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 ruleP1universalStack: react
htmlaccessibilityreactsemantics
Do not nest anchor elements
Nested <a> tags are invalid HTML and trigger React warnings; ensure an element is wrapped by only one link.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetsx
| 1 | <a href={articleUrl}> |
| 2 | <a href={tickerUrl}>{ticker}</a> |
| 3 | </a> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | <a href={articleUrl}> |
| 2 | <span>{ticker}</span> |
| 3 | </a> |
Explanation (EN)
Objašnjenje (HR)