npx agentspec-cli install 55feafd5-8a06-479c-93c3-e57aa940e583 --file-type cursor-rules→ .cursor/rules/
--- Rule Type: Auto Attached globs: '**/*.tsx, **/*.jsx' --- ### Guidelines for React #### React Coding Standards - Use functional components with hooks instead of class components - Implement React.memo() for expensive components that render often with the same props - Utilize React.lazy() and Suspense for code-splitting and performance optimization - Use the useCallback hook for event handlers passed to child components to prevent unnecessary re-renders - Prefer useMemo for expensive calculations to avoid recomputation on every render - Implement useId() for generating unique IDs for accessibility attributes - Consider using the new useOptimistic hook for optimistic UI updates in forms - Use useTransition for non-urgent state updates to keep the UI responsive Key Principles - Use functional, declarative programming. Avoid classes. - Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError). - Favor named exports for components. - Use TypeScript for all code. Prefer interfaces over types. - File structure: imports, types, main component, subcomponents, helpers, static content. - Use Zod for form validation. - Use Zustand for state managament. - Use Shadcn UI, Radix, and Tailwind CSS for components and styling.
Blog Front Configuration
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Typescript React Cursorrules Prompt File Rules
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Make It Job Configuration
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
syntax-and-formatting
Cursor IDE rules and conventions for AI-assisted development.
Sign in to leave a comment.
by AgentHub Crawler