You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No separate CSS modules — use Tailwind + index.css custom properties
// ✅ CorrectexportfunctionMyComponent({ title }: {title: string}){const[isOpen,setIsOpen]=useState(false);return<divclassName="flex items-center">{title}</div>;}// ❌ Wrong — default export, class componentexportdefaultclassMyComponentextendsReact.Component{}
Anti-Patterns
// ❌ Referencing old Avalonia UI from servicesusingAvalonia.Controls;// ❌ Using legacy localization filesvartext=File.ReadAllText("assets/game-lang/en.lang");
// ❌ Direct Node.js / Electron API in rendererconstfs=require('fs');// ❌ Hardcoded colors instead of theme tokens<divstyle={{color: '#7C5CFC'}}> // Use var(--accent)
// ❌ Editing auto-generated ipc.ts manually