| 1 | Security | No secrets, XSS prevention, safe innerHTML | | 2 | Type Safety | No any, explicit types, proper generics | | 3 | React Patterns | Hooks rules, component structure, keys | | 4 | Performance | Memoization, bundle size, re-renders | | 5 | Accessibility | ARIA, keyboard nav, semantic HTML |
| Type annotations | Explicit types | any, implicit any | | Generics | Proper constraints | | | Null handling | Strict null checks | ! assertions | | Type guards | Proper narrowing | Type casting | | API types | Generated from schema | Manual types | | Enums | String enums or const objects | Numeric enums |
| Component type | Functional components | Class components | | Props typing | Interface/type for props | Inline types, any | | Default props | Default parameters | defaultProps | | Children | Explicit children prop | Implicit | | Fragments | <> or Fragment | Unnecessary divs | | Keys | Stable, unique keys | Index as key |