react-best-practices

Enforce React and Next.js performance optimization patterns for bundle size and rendering.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/zenchantlive/meridian --skill react-best-practices-zenchantlive
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-best-practices
Source: https://github.com/zenchantlive/meridian/tree/main/.claude/skills/create-beads-orchestration/templates/skills/react-best-practices
Command: npx skills add https://github.com/zenchantlive/meridian --skill react-best-practices-zenchantlive

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that React and Next.js code is written with optimal performance and best practices from the outset, preventing common pitfalls that lead to slow applications.

Core Features & Use Cases

  • Performance Optimization: Provides a comprehensive set of rules to improve bundle size, rendering speed, and data fetching efficiency.
  • Best Practice Enforcement: Guides developers on critical patterns like avoiding waterfalls, strategic suspense, and efficient state management.
  • Use Case: Before starting development on a new feature in a Next.js application, consult this Skill to ensure all data fetching, component rendering, and bundle management adhere to Vercel's recommended high-performance patterns.

Quick Start

Review the "Quick Reference: Critical Rules" section before writing any new React or Next.js code.

Frequently Asked Questions about react-best-practices

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

FAQPage Schema
What are the best practices for React and Next.js performance optimization?

React and Next.js performance optimization best practices include using Promise.all for independent data fetching, dynamic imports for heavy components, and minimizing serialization at RSC boundaries to improve bundle size and rendering speed.

How do I avoid data fetching waterfalls in Next.js applications?

To avoid data fetching waterfalls in Next.js, use Promise.all to execute independent operations concurrently. This prevents sequential fetching delays and significantly improves data fetching efficiency.

When should I use dynamic imports for heavy React components?

Use dynamic imports for heavy React components when you need to reduce initial bundle size. This pattern strategically loads non-critical components on demand, improving overall application loading performance.

How does minimizing serialization at RSC boundaries improve Next.js rendering?

Minimizing serialization at RSC boundaries improves Next.js rendering by reducing the overhead of passing large data objects between server and client components, which streamlines server-side and client-side rendering operations.

What is the best way to manage re-renders and state in React applications?

The best way to manage re-renders and state in React involves following efficient state management patterns and strategic suspense implementation to prevent unnecessary component re-renders and optimize rendering speed.

Do I need to follow specific rules for bundle size optimization in Next.js?

Yes, bundle size optimization in Next.js requires following a comprehensive set of rules including dynamic imports for heavy components and avoiding unnecessary client-side JavaScript to ensure high-performance patterns.