vercel-react-best-practices

Apply React/Next.js performance patterns to components, pages, and data-fetching logic.

148|39|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/usenotra/notra --skill vercel-react-best-practices-usenotra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-react-best-practices
Source: https://github.com/usenotra/notra/tree/main/.opencode/skill/vercel-react-best-practices
Command: npx skills add https://github.com/usenotra/notra --skill vercel-react-best-practices-usenotra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies proven performance and reliability patterns for React and Next.js applications, helping teams reduce load times and improve user experience during development, review, and refactoring.

Core Features & Use Cases

  • Guided performance patterns: provides a consolidated set of rules for eliminating waterfalls, optimizing bundles, and refining server/client data flows.
  • Practical workflows: applies to writing, reviewing, or refactoring React components, Next.js pages, and data-fetching logic.
  • Real-world scenario: example-driven guidance for Suspense boundaries, dynamic imports, and serialization across server components to achieve faster initial paint and improved time-to-interactive.

Quick Start

Audit a representative React/Next.js page and implement 2-3 recommended patterns, such as avoiding barrel imports, enabling lazy loading, and reducing client-server serialization.

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 avoid data fetching waterfalls in React Server Components?

To avoid data fetching waterfalls in React Server Components, fetch data in parallel at the top level of the tree rather than sequentially awaiting nested component requests. This skill codifies rules for optimizing client/server data flow to reduce load times.

What is the best way to optimize bundling and reduce client-side JavaScript in Next.js?

Optimizing bundling in Next.js involves avoiding barrel imports, enabling dynamic imports for lazy loading, and refining server/client data flows. This skill provides practical workflows to apply these patterns during code review and refactoring.

How do I use Suspense boundaries for faster initial paint in Next.js?

Using Suspense boundaries in Next.js allows you to stream page chunks and improve initial paint time by wrapping asynchronous components. This skill offers example-driven guidance for implementing Suspense and reducing client-server serialization across boundaries.

When should I use per-request React.cache in server components?

Use per-request React.cache in server components to deduplicate identical data fetches occurring within a single render pass. This skill helps enforce this pattern alongside mindful serialization across RSC boundaries during application refactoring.

Does this skill help with code review for React performance best practices?

Yes, this skill applies practical workflows for reviewing React components and Next.js pages to enforce performance patterns. It helps teams identify issues like improper data flows and inefficient bundling during code review.