react-best-practices

Review edited TSX/JSX React components for performance and quality regressions.

Updated May 16, 2026
One-click install
npx skills add https://github.com/MohammedHTahir/vibe-coding-platform --skill react-best-practices-mohammedhtahir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/MohammedHTahir/vibe-coding-platform/tree/main/.kiro/vercel-plugin/skills/react-best-practices
Command: npx skills add https://github.com/MohammedHTahir/vibe-coding-platform --skill react-best-practices-mohammedhtahir

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you identify common React and Next.js code quality problems—especially performance regressions, inefficient rendering patterns, and unsafe or incorrect component structures—before they become bugs or slow user experiences.

Core Features & Use Cases

  • Condensed React TSX review: Reviews component structure, hook usage, accessibility concerns, TypeScript patterns, and performance anti-patterns across TSX/JSX.
  • Performance-focused guidance: Flags patterns that cause waterfalls, excess bundle weight, unnecessary re-renders, hydration issues, and inefficient RSC/client prop serialization.
  • Targeted rule escalation: Detects legacy styling/component libraries (styled-components, Emotion, MUI, Chakra) and suggests an upgrade path to shadcn/ui + Tailwind.

Quick Start

Apply the react-best-practices reviewer to the TSX files you edited most recently, then follow the checklist it returns to modernize components and fix any performance or accessibility findings.

Frequently Asked Questions about react-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I catch React TSX performance issues and code quality regressions?

React component performance issues are caught by running rule-based validations on edited TSX/JSX files to check hook usage, component structure, TypeScript patterns, and rendering behavior. This process prevents unnecessary re-renders, hydration issues, and accessibility regressions before they reach production.

What are common React and Next.js performance anti-patterns in TSX components?

Common React and Next.js anti-patterns include inefficient rendering behavior, unsafe component structures, RSC/client prop serialization issues, and hydration mismatches. Evaluating TSX components detects these performance regressions alongside accessibility concerns and TypeScript pattern misuse.

How do I review React components for accessibility and TypeScript patterns?

Reviewing React components for accessibility and TypeScript patterns involves evaluating edited TSX/JSX files against rule-based validations. This checks component structure, hook usage, and rendering behavior to identify and fix code quality problems before they become bugs.

Does this React code review work with Next.js and specific component directory paths?

Yes, the React code review works with Next.js and applies rule-based validations to matching path patterns under src/components, app/components, components, src/ui, and lib/components. It specifically targets common Next.js pitfalls after multi-file edits.

Can I detect legacy React styling libraries and get upgrade guidance?

Yes, legacy styling and component libraries like styled-components, Emotion, MUI, and Chakra are detected during TSX component review. The validation provides targeted rule escalation and suggests an upgrade path to shadcn/ui and Tailwind.

What's the best way to fix React rendering and hydration issues after multi-file edits?

The best way to fix React rendering and hydration issues is to apply a reviewer to recently edited TSX files and follow the returned checklist. This identifies inefficient RSC/client prop serialization and modernizes components to resolve performance findings.