react-best-practices

Analyze React and Next.js codebases for performance optimization opportunities.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Loosand/better-forge --skill react-best-practices-loosand
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/Loosand/better-forge/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/Loosand/better-forge --skill react-best-practices-loosand

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the complexity of optimizing React and Next.js applications for performance, reducing load times, bundle sizes, and unnecessary re-renders.

Core Features & Use Cases

  • Performance Refactoring: Guides users through eliminating waterfalls, minimizing bundle sizes, and improving server-side and client-side efficiency.
  • Code Optimization: Provides best practices for lazy loading, serialization, and state management to create fast, reliable web apps.
  • Use Case: When refactoring a Next.js project, apply this Skill's recommendations to reduce page load times and improve user experience through automated code review and suggestions.

Quick Start

Use this Skill to analyze your React or Next.js codebase and receive targeted performance improvements and code snippets.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
How do I reduce bundle size and unnecessary re-renders in a React application?

To reduce bundle size and re-renders in a React application, apply targeted code splitting, lazy loading, and serialization best practices. This Skill provides guidelines for minimizing bundle sizes and eliminating unnecessary re-renders.

What is the best way to optimize server-side and client-side data fetching in Next.js?

Optimizing Next.js data fetching involves eliminating waterfalls and ensuring efficient server/client serialization. This Skill provides best practices for server/client data fetching to maximize efficiency and reduce runtime.

How do I eliminate data waterfalls when refactoring a Next.js project?

Eliminating data waterfalls in a Next.js project requires restructuring server-side and client-side fetching patterns. This Skill guides you through performance refactoring to remove waterfalls and improve overall efficiency.

Can I use these React optimization guidelines for an existing high-performance web app?

Yes, these React optimization guidelines apply to developers enhancing existing projects or building new high-performance web apps. The Skill analyzes your codebase to provide targeted performance improvements and code snippets.

Why does my React app still have slow load times after basic code splitting?

Slow load times in React can persist after basic code splitting due to inefficient serialization or server-side fetching waterfalls. This Skill addresses these complexities by providing comprehensive performance refactoring guidelines.