vercel-react-best-practices

Optimize React and Next.js applications with performance best practices.

Updated Apr 9, 2019
One-click install
npx skills add https://github.com/Yusei-SHIRAISHI/my_dotfiles --skill vercel-react-best-practices-yusei-shiraishi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/Yusei-SHIRAISHI/my_dotfiles/tree/main/.codex/skills/react-best-practices
Command: npx skills add https://github.com/Yusei-SHIRAISHI/my_dotfiles --skill vercel-react-best-practices-yusei-shiraishi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses common performance bottlenecks in React and Next.js applications, ensuring faster load times, smoother interactions, and more efficient code.

Core Features & Use Cases

  • Performance Optimization: Provides 58 rules across 8 categories for improving React/Next.js apps.
  • Code Refactoring Guidance: Offers detailed explanations and code examples for implementing best practices.
  • Use Case: When developing a new Next.js page, consult this Skill to ensure data fetching is parallelized, bundle sizes are minimized, and re-renders are optimized.

Quick Start

Apply the vercel-react-best-practices skill to refactor the provided React component for improved performance.

Frequently Asked Questions about vercel-react-best-practices

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

FAQPage Schema
How do I optimize React and Next.js performance during development?

React and Next.js performance optimization involves eliminating data fetching waterfalls, reducing bundle sizes, and minimizing unnecessary re-renders. This Skill provides 58 actionable rules across 8 categories, complete with code examples, to directly address these bottlenecks and improve application speed.

What is the best way to reduce bundle size in a Next.js application?

Reducing Next.js bundle size requires applying specific best practices for bundle size reduction. This Skill provides detailed code refactoring guidance and actionable examples to minimize bloat, ensuring faster load times and more efficient code delivery.

How do I prevent unnecessary re-renders in React components?

Preventing unnecessary React re-renders requires applying specific optimization patterns and best practices. This Skill offers detailed explanations and actionable code examples to refactor components, ensuring smoother interactions and more efficient rendering cycles.

Does this React optimization guidance cover both server-side and client-side data fetching?

Yes, this React optimization guidance comprehensively covers both server-side and client-side data fetching. It provides actionable best practices to parallelize fetching and eliminate waterfalls, ensuring optimal performance for Next.js applications.

When should I refactor a React component for performance optimization?

You should refactor a React component for performance optimization when encountering slow load times, inefficient code, or interaction lag. This Skill provides actionable code examples to address these bottlenecks and enhance overall application speed.