react-best-practices

Optimize React and Next.js performance with 40 rules across 8 categories.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/involvex/llms-remote --skill react-best-practices-involvex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/involvex/llms-remote/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/involvex/llms-remote --skill react-best-practices-involvex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, guiding developers to write more efficient, faster, and scalable code.

Core Features & Use Cases

  • Performance Optimization: Provides over 40 rules across 8 categories, from critical waterfall elimination to advanced rendering patterns.
  • Agent-Friendly Guidelines: Specifically designed for AI agents to use in code generation, review, and refactoring.
  • Use Case: When developing a new feature, consult this Skill to ensure data fetching is optimized, bundle sizes are minimized, and re-renders are efficiently handled, leading to a smoother user experience.

Quick Start

Apply the react-best-practices skill to refactor the provided React component for optimal performance.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I optimize React and Next.js performance for data fetching?

To optimize React and Next.js performance, eliminate data fetching waterfalls by parallelizing requests and utilizing server-side fetching where applicable. This Skill provides over 40 rules to guide these specific refactoring patterns for faster loads.

What is the best way to reduce bundle size in a Next.js application?

Reducing bundle size in Next.js involves analyzing dependencies and applying dynamic imports for non-critical components. This Skill provides guidelines to minimize bundle sizes, ensuring efficient code delivery and improved application loading times.

How do I stop unnecessary re-renders in React components?

To stop unnecessary re-renders in React, apply memoization techniques and optimize state management to prevent excessive component updates. This Skill offers advanced rendering patterns to efficiently handle re-renders and boost performance.

Can AI agents use these React optimization guidelines for code review?

Yes, AI agents can use these React optimization guidelines for code generation, review, and refactoring. The rules are specifically designed to be agent-friendly, providing clear instructions for automated code quality and efficiency improvements.

Does this Skill cover both server-side and client-side rendering optimization?

Yes, this Skill covers both server-side and client-side data fetching and rendering optimization. It provides comprehensive guidelines across 8 categories to address critical performance bottlenecks in your React and Next.js applications.