A curated list of snippets that I have found useful.
A simple Dockerfile example for building React apps with Vite and serving them using Nginx. FROM
A custom class-validator Decorator to validate if a particular property is object or not
A type-safe API route implementation with Zod validation and proper error handling
A comprehensive guide to integrating Convex DB with Next.js, including type-safe queries and mutations
A type-safe approach to handling dynamic metadata in Next.js 14+ using the new metadata API
A type-safe error boundary component with fallback UI and error reporting
A custom React hook for handling keyboard shortcuts with TypeScript support
A comprehensive implementation of React Query with TypeScript, custom hooks, and error handling
A modern implementation of Redux Toolkit with TypeScript, including async thunks and proper typing
Custom Tailwind CSS utilities for complex responsive layouts