Frontend patterns for vanilla HTML/CSS/JS and React: components, state, forms, accessibility, and performance. Use when building or changing UI, pages, or client-side behavior.
Patterns for both vanilla JavaScript (current project) and React (future use).
header, nav, main, section, article, footer, button, label, inputdata-* attributes for component configuration; avoid inline scripts for behaviorlabel with input (id/for or wrapping)alt; decorative images: alt="" or CSS backgrounduseMemo for expensive derived values; useCallback for stable callbacks passed to childrenReact.lazy + Suspenseconsole.log in production; use a logging approach or strip in build