What problem does it solve?
This guide addresses slow startup, high memory usage, and long hydration or render delays when running React and Next.js applications locally or inside Docker by prescribing patterns to avoid async waterfalls, reduce client payloads, and keep the UI responsive.
Core Features & Use Cases
- Eliminate Async Waterfalls: Start independent work early and await late to avoid sequential fetch blocking.
- Bundle and Startup Control: Prefer direct imports, dynamic loading, and conditional bundles to reduce initial JS and memory cost.
- Server and RSC Boundaries: Minimize serialized props, deduplicate data, and use per-request caching and LRU caches for hot work.
- Use Case: Audit a Next.js app running in a developer VM or Docker container to produce prioritized changes that reduce cold-start time and client-side memory pressure.
Quick Start
Use react-patterns to audit my Next.js project and produce a prioritized checklist to reduce startup time, memory footprint, and hydration delays.