React best practices

From Dokhacgiakhoa/antigravity-ide · View interactive version

React best practices is an AI agent skill from the GitHub repository Dokhacgiakhoa/antigravity-ide. React & Next.js engineering standards.

How to use this skill

Skill file

React & Next.js Best Practices

Goal: Build high-performance, maintainable, and accessible React applications using modern patterns (React 19+, Next.js App Router).

1. Architecture & Rendering

2. Component Patterns

3. State Management

4. Performance Optimization

5. Styling

6. Directory Structure (Feature-First)

app/
├── (marketing)/     # Route group
├── dashboard/
│   ├── page.tsx
│   ├── layout.tsx
│   ├── _components/ # Private feature components
│   └── loading.tsx
components/          # Shared components (UI Kit)
lib/                 # Utilities and helpers
hooks/               # Shared hooks
types/               # Global types

7. Security


Checklist before PR:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.