react-best-practices

Identify and address performance issues in React and Next.js applications.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/roger8b/slideflow --skill react-best-practices-roger8b
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/roger8b/slideflow/tree/main/.agent/skills/nextjs-react-expert
Command: npx skills add https://github.com/roger8b/slideflow --skill react-best-practices-roger8b

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps optimize React and Next.js applications, addressing common performance issues such as waterfalls, large bundle sizes, and excessive re-renders.

Core Features & Use Cases

  • Eliminate Waterfalls: Identify and eliminate sequential data fetching and processing.
  • Bundle Size Optimization: Reduce initial load time by optimizing code splitting and tree-shaking.
  • Server-Side Performance: Improve SSR and API route efficiency.
  • Client-Side Data Fetching: Use SWR for deduplication and caching.
  • Re-render Optimization: Minimize unnecessary re-renders and improve UI responsiveness.
  • Rendering Performance: Optimize SVG, virtualization, and layout thrashing.
  • JavaScript Performance: Apply micro-optimizations and caching strategies.
  • Advanced Patterns: Utilize advanced patterns for specific use cases.

Quick Start

Analyze your React application for performance bottlenecks using the react-best-practices skill.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I fix excessive re-renders in my React application?

React bundle size optimization involves reducing initial load time through code splitting and tree-shaking. This skill analyzes your application to identify large bundles and provides specific guidance on optimization techniques to achieve faster performance.

How do I eliminate data fetching waterfalls in Next.js?

SSR and API route efficiency can be improved by eliminating sequential data fetching and processing waterfalls. This skill analyzes your Next.js application to identify these bottlenecks and provides guidance on advanced patterns to optimize server-side performance.

What is the best way to optimize client-side data fetching in React?

Yes, you can reduce initial load time by optimizing code splitting and tree-shaking to reduce your JavaScript bundle size. This skill provides guidance on these best practices to ensure faster performance for your application.

Do I need to understand Next.js to use these React performance optimizations?

To fix excessive re-renders in React, you need to identify unnecessary component updates and apply memoization patterns. This skill analyzes your application to pinpoint re-render bottlenecks and provides specific techniques to minimize them and improve UI responsiveness.

How do I optimize rendering performance for SVGs and large lists in React?

The best way to optimize client-side data fetching in React is using SWR for deduplication and caching. This skill provides guidance on implementing this approach to reduce redundant network requests and improve overall application performance.