#react#nextjs#performance#typescript#frontend

React Best Practices

Independent PiSkill directory guide. The original skill remains hosted by Vercel Agent Skills.

What is React Best Practices?

Applies Vercel Engineering's React and Next.js performance guidance when writing, reviewing, or refactoring components, data fetching, bundles, rendering, and server-side code.

What does React Best Practices do?

React Best Practices is a Vercel Agent Skill for improving performance in React and Next.js applications. It organizes dozens of engineering rules by impact, with highest priority on eliminating async waterfalls and unnecessary bundle cost before moving into server, client, rerendering and lower-level JavaScript optimizations.

Who is React Best Practices best for?

  • React and Next.js developers reviewing performance
  • AI agents refactoring frontend code
  • Teams reducing bundle size and request waterfalls
  • Projects improving server rendering and client responsiveness

Common use cases

  • Parallelize independent asynchronous work
  • Reduce heavy or unnecessary client bundles
  • Optimize server-side data fetching and serialization
  • Reduce avoidable React rerenders and expensive rendering work

How does React Best Practices work?

The skill reviews code against prioritized performance categories and applies the highest-impact rules first. It looks for waterfalls, broad imports and bundles, server-side inefficiencies, client data patterns, rerender issues, rendering problems and lower-level JavaScript opportunities, then uses focused rule references for the relevant fix.

Key benefits

  • Prioritizes changes by likely impact
  • Covers both React and Next.js server/client behavior
  • Useful for generation, review and refactoring
  • Provides concrete rule-level guidance rather than generic performance advice

Things to know

  • Not every rule applies to every application
  • Performance changes should still be measured in the real product
  • Some recommendations depend on current React and Next.js capabilities

Compatible tools

Claude CodeOpenAI CodexCursorGitHub Copilot

Frequently asked questions

What does the React Best Practices skill optimize first?
Its highest-priority categories are eliminating asynchronous waterfalls and reducing bundle size before lower-impact optimizations.
Can it review existing React code?
Yes. The skill is explicitly intended for writing, reviewing and refactoring React and Next.js code for performance.
← Back to Skills Directory