AI Coding Rules for React
11 rules across 5 AI tools to help you write better React code. Works with Cursor, Claude, Windsurf, GitHub Copilot, Cline, and Aider.
React Components Creation Rules
1. Carefully consider the component's purpose, functionality, and design
React Cursor Rules
Cursor rules for React: component patterns, hooks best practices, performance optimization, and clean state management conventions.
Tailwind (React, Firebase) Rules
Here are some best practices and rules to follow for creating a high-quality, mobile-first web app with excellent UI/UX using Tailwind, React, and Firebase:
React (React Query) Rules
const preferFunctionalComponents = true;
React Claude Rules
Claude rules for React: component design, state patterns, performance, and testing conventions in CLAUDE.md.
React Native Expo Rules
const reactNativeExpoBestPractices = [
React (Chakra UI) Rules
const preferFunctionalComponents = true;
React (Styled Components) Rules
const preferFunctionalComponents = true;
React GitHub Copilot Instructions
GitHub Copilot instructions for React: hooks, patterns, and best practices for modern React apps.
React Windsurf Rules
Windsurf rules for React: modern patterns, performance, and scalable React architecture.
React Cline Rules
Cline rules for React: component patterns, performance, and modern React architecture.