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

CursorReact

1. Carefully consider the component's purpose, functionality, and design

General AI
cursor · reactCopy Ready

React Cursor Rules

CursorReact

Cursor rules for React: component patterns, hooks best practices, performance optimization, and clean state management conventions.

Architecture
react · hooksCopy Ready

Tailwind (React, Firebase) Rules

CursorReact

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:

General AI
cursor · reactCopy Ready

React (React Query) Rules

CursorReact

const preferFunctionalComponents = true;

Code Style
cursor · reactCopy Ready

React Claude Rules

ClaudeReact

Claude rules for React: component design, state patterns, performance, and testing conventions in CLAUDE.md.

Architecture
react · claudeCopy Ready

React Native Expo Rules

CursorReact

const reactNativeExpoBestPractices = [

General AI
cursor · react-nativeCopy Ready

React (Chakra UI) Rules

CursorReact

const preferFunctionalComponents = true;

General AI
cursor · reactCopy Ready

React (Styled Components) Rules

CursorReact

const preferFunctionalComponents = true;

Code Style
cursor · reactCopy Ready

React GitHub Copilot Instructions

GitHub CopilotReact

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

Code Style
react · copilotCopy Ready

React Windsurf Rules

WindsurfReact

Windsurf rules for React: modern patterns, performance, and scalable React architecture.

Architecture
react · windsurfCopy Ready

React Cline Rules

ClineReact

Cline rules for React: component patterns, performance, and modern React architecture.

Architecture
react · clineCopy Ready