react-best

Optimize React and Next.js code by eliminating waterfall fetching and reducing re-renders.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/jjmendezrodriguez/jm-claude-plugin --skill react-best
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best
Source: https://github.com/jjmendezrodriguez/jm-claude-plugin/tree/main/skills/react-best
Command: npx skills add https://github.com/jjmendezrodriguez/jm-claude-plugin --skill react-best

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

React and Next.js performance issues caused by sequential data fetching, oversized bundles, and unnecessary re-renders that slow Time to Interactive and degrade UX.

Core Features & Use Cases

  • Eliminate waterfalls first: parallelize independent awaits, defer work until needed, and apply Suspense boundaries to stream the UI earlier.
  • Shrink bundle size: prevent heavy barrel imports, dynamically load large components, and defer non-critical third-party libraries until after hydration.
  • Reduce re-renders with better patterns: hoist static JSX, avoid inline object props for memoized children, narrow effect dependencies, and use React 19 composition/compound patterns (including React 19 use() usage guidance).
  • When to use: component writing, code review, and refactors where you see “too many re-renders,” waterfall fetching, slow pages, or bundle bloat in React/Next.js apps.

Quick Start

Ask the AI to “Apply the react-best rules to this React/Next.js component and rewrite the data fetching, imports, and render patterns to remove waterfalls and minimize re-renders.”

Frequently Asked Questions about react-best

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

FAQPage Schema
How do I fix React sequential waterfall data fetching?

To fix React sequential waterfall data fetching, parallelize independent awaits, defer work until needed, and apply Suspense boundaries to stream the UI earlier.

What's the best way to reduce React bundle size?

The best way to reduce React bundle size is to prevent heavy barrel imports, dynamically load large components, and defer non-critical third-party libraries until after hydration.

Why does my Next.js component re-render unnecessarily and how do I stop it?

Next.js components re-render unnecessarily due to inline object props and broad effect dependencies; stop it by hoisting static JSX, narrowing dependencies, and using React 19 composition patterns.

Can I use React 19 use() hook patterns to optimize rendering?

Yes, you can use the React 19 use() hook within composition and compound component patterns to optimize data fetching and minimize unnecessary client re-renders.

Does this approach work for both React and Next.js refactors?

Yes, this approach works for both React and Next.js refactors by applying a prioritized rule order targeting waterfalls, bundle size, server and client fetching, and rendering patterns.

What are the limitations of optimizing React rendering with memoization?

Memoization limitations arise when passing inline object props to memoized children; overcoming this requires hoisting static JSX and applying React 19 compound component structures.