react-best-practices

Automate performance optimization guidelines for React and Next.js projects.

17|3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/jidohyun/NOD --skill react-best-practices-jidohyun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/jidohyun/NOD/tree/main/.agents/skills/react-best-practices
Command: npx skills add https://github.com/jidohyun/NOD --skill react-best-practices-jidohyun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React and Next.js projects often struggle with performance bottlenecks such as waterfalls, large bundles, inefficient data fetching, and excessive re-renders. This Skill provides a structured set of best practices to optimize rendering, data flow, and loading strategies to deliver faster, smoother user experiences.

Core Features & Use Cases

  • Eliminate waterfalls: defer and parallelize asynchronous work to reduce latency.
  • Bundle optimization: utilize dynamic imports, conditional loading, and preloading where appropriate.
  • Data fetching efficiency: prefer Orval-generated React Query hooks and avoid RSC fetch in client components to leverage caching and deduplication.
  • Re-render and rendering optimizations: extract memoized components, narrow effect dependencies, and employ transitions for non-urgent updates.
  • Real-world scenarios include optimizing a Next.js page with data-heavy sections and a slow API.

Quick Start

Review components and data-fetching patterns against these rules and implement recommended performance improvements in your codebase.

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 React data fetching waterfalls and reduce API latency?

Optimize React bundle size by utilizing dynamic imports, conditional loading, and preloading where appropriate. This strategy ensures only necessary code loads initially, reducing initial bundle weight and speeding up page rendering.

What's the best way to prevent excessive re-renders in Next.js client components?

Prevent excessive re-renders in Next.js client components by extracting memoized components, narrowing effect dependencies, and employing transitions for non-urgent updates. This minimizes unnecessary render cycles during state changes.

Does this approach work with Orval-generated React Query hooks for caching?

Yes, the approach supports Orval-generated React Query hooks for data fetching efficiency. By preferring these hooks and avoiding RSC fetch in client components, you leverage built-in caching and deduplication for optimized data flow.

Can I use React Compiler-assisted memoization for component optimization?

Yes, you can use React Compiler-assisted memoization alongside Orval and React Query. This automates performance optimization guidelines for refactoring components, handling memoization automatically without manual dependency array management.

How do I optimize a slow Next.js page with data-heavy sections?

Optimize a slow Next.js page by applying bundle optimization, data fetching efficiency, and re-render optimizations across client and server components. This structured set of best practices targets bottlenecks to deliver faster user experiences.