vercel-react-best-practices

Optimize React and Next.js applications with performance rules for refactoring.

142|14|Updated Jan 14, 2020
One-click install
npx skills add https://github.com/marigold-ui/marigold --skill vercel-react-best-practices-marigold-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/marigold-ui/marigold/tree/main/.agents/skills/vercel-react-best-practices
Command: npx skills add https://github.com/marigold-ui/marigold --skill vercel-react-best-practices-marigold-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides comprehensive guidelines to optimize React and Next.js applications, addressing critical performance bottlenecks from bundle size to server-side rendering.

Core Features & Use Cases

  • Performance Optimization: Offers 57 rules across 8 categories, prioritized by impact, to improve application speed and efficiency.
  • Code Generation & Refactoring: Guides AI agents in writing, reviewing, and refactoring React/Next.js code for optimal performance.
  • Use Case: When developing a new Next.js feature, consult this Skill to ensure data fetching is parallelized, bundle sizes are minimized, and server-side rendering is efficient, leading to a faster user experience.

Quick Start

Apply the vercel-react-best-practices skill to refactor the data fetching logic in the useUserProfile hook to prevent waterfalls.

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?

To optimize React and Next.js performance, apply 57 rules across 8 categories including bundle size minimization, server-side rendering efficiency, and eliminating data fetching waterfalls to enhance application speed.

What is the best way to prevent data fetching waterfalls in Next.js?

Preventing data fetching waterfalls in Next.js requires parallelizing data requests and refactoring hooks to ensure efficient client-side fetching, which eliminates sequential loading delays and improves overall speed.

How does bundle size optimization improve web development speed?

Bundle size optimization improves web development speed by minimizing the JavaScript shipped to the client, which directly reduces load times and enhances rendering performance for React applications.

Can I use automated refactoring to improve React rendering performance?

Yes, you can use automated refactoring guided by AI agents to improve React rendering performance by applying specific rules for re-render optimization and advanced performance patterns.

When do I need server-side performance rules for Next.js applications?

You need server-side performance rules for Next.js applications when developing new features that require efficient server-side rendering and parallelized data fetching to deliver a faster user experience.

What are the limitations of using generic React performance patterns?

Generic React performance patterns may not address specific bottlenecks like server-side rendering inefficiencies or bundle size issues, requiring prioritized rules across 8 distinct categories for comprehensive optimization.