react-best-practices

Optimize React and Next.js application performance with structured code improvements.

3|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/boazcstrike/opencode --skill react-best-practices-boazcstrike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/boazcstrike/opencode/tree/main/skills/react-best-practices
Command: npx skills add https://github.com/boazcstrike/opencode --skill react-best-practices-boazcstrike

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines and actionable rules to optimize the performance of React and Next.js applications, addressing critical areas like bundle size, rendering speed, and data fetching efficiency.

Core Features & Use Cases

  • Performance Auditing: Identifies and suggests fixes for performance bottlenecks in React/Next.js codebases.
  • Code Refactoring: Offers specific patterns and examples for improving code efficiency and reducing load times.
  • Use Case: When developing a new feature in a Next.js app, use this Skill to ensure all data fetching is optimized, component re-renders are minimized, and the initial bundle size is kept small.

Quick Start

Apply the react-best-practices skill to refactor the provided React component code for improved 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 component re-renders and reduce bundle size?

To optimize React component re-renders and reduce bundle size, apply structured code improvements and pattern adherence to minimize unnecessary rendering cycles and eliminate performance waterfalls. This involves refactoring data fetching to improve application speed and responsiveness.

What is the best way to prevent data fetching waterfalls in Next.js applications?

The best way to prevent Next.js data fetching waterfalls is to optimize server-side and client-side data fetching patterns. By restructuring how data requests are initiated and resolved, you eliminate sequential blocking and improve overall application responsiveness.

Does this approach work for both server-side and client-side data fetching in Next.js?

Yes, this approach works for both server-side and client-side data fetching in Next.js. It provides specific patterns to optimize data retrieval efficiency across both environments, ensuring structured code improvements that target application speed and reduce load times.

How do I audit my existing React codebase for performance bottlenecks?

To audit your existing React codebase for performance bottlenecks, identify areas like bundle size, rendering speed, and data fetching efficiency. Use actionable rules to suggest fixes for critical bottlenecks and refactor components for improved code efficiency.

When should I refactor React components for rendering performance?

You should refactor React components for rendering performance when experiencing slow application speed and reduced responsiveness. Target component re-render optimization and bundle size reduction to improve user experience through structured code improvements and pattern adherence.