React Recipes
View CommandsReact and Next.js CLI tools for creating, building, and deploying modern web applications and components.
8 recipes
Accessibility Testing with axe-core
Audit React components for WCAG accessibility violations using axe-core in tests, CI, and browser DevTools.
Analyze and Reduce Bundle Size
Visualize your JavaScript bundle, identify bloated dependencies, and apply tree-shaking and code-splitting to reduce load times.
Test React Components with Vitest and Testing Library
Set up and write component tests using Vitest and React Testing Library with user-centric queries and assertions.
Dockerize and Deploy a React/Next.js App
Create a production-optimized Docker image for a Next.js application with multi-stage builds and minimal image size.
Environment Variable Management Across Environments
Configure and validate environment variables for development, staging, and production in React and Next.js projects.
Create a Next.js App Router Project from Scratch
Scaffold a new Next.js project with App Router, TypeScript, Tailwind CSS, and ESLint fully configured and ready for development.
Profile and Audit React Performance
Use Lighthouse, React DevTools Profiler, and Chrome Performance tab to identify and fix rendering bottlenecks.
Set Up Storybook for Component-Driven Development
Install and configure Storybook to develop, document, and visually test React components in isolation.