GitHub CopilotReactCode Style

React GitHub Copilot Instructions

GitHub Copilot instructions for React: hooks, patterns, and best practices for modern React apps.

.github/copilot-instructions.md
- Generate functional components with TypeScript prop types defined above the component
- Use Tanstack Query for server state; React Context for global app state
- Include keyboard navigation and ARIA attributes in all interactive components
- Generate stories (Storybook) for all shared UI components
- Apply tailwind classes with cn() helper for conditional styling
- Use React Hook Form with zod resolver for form validation
- Generate tests with React Testing Library; avoid testing implementation details
- Use Framer Motion for animations; avoid CSS transitions for complex sequences

How to use with GitHub Copilot

Create `.github/copilot-instructions.md` in your repository. GitHub Copilot uses these to customize suggestions across your whole repo.

#react#copilot#github#components#coding-rules

Related Rules