Back to Directory
ReactVercelBest Practices
vercel-react-best-practices
vercel-labs/agent-skills
Installation
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-best-practices
Description
Vercel React Best Practices. Guidance for building high-performance, accessible React applications deployed on Vercel.
How to Use
Vercel React Best Practices
This guide covers best practices for building high-performance, accessible React applications deployed on Vercel.
Core Concepts
- Server Components: Use Server Components by default for better performance and SEO.
- Streaming: Implement streaming to show UI sooner.
- Image Optimization: Use for automatic image optimization.
next/image
Installation
npm install @vercel/analytics
Usage
Import the analytics component in your root layout:
import { Analytics } from '@vercel/analytics/react';
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
<Analytics />
</body>
</html>
);
}
Metadata
Rank#1
Repositoryagent-skills
Ownervercel-labs