This cheatsheet outlines 29 common mistakes, explaining why they're problematic and how to fix them with practical, best-practice solutions. Use this as a checklist before your next PR, during code reviews, or as you build your Next.js application to ensure you're leveraging the framework effectively.


1. Marking the Root Page as a Client Component

2. Not Protecting Server Actions

3. Placing Server Component get Calls Inside a Server Actions File

4. Shipping AI-Generated Code to Production Without Review

5. Using Route Handlers Instead of Server Components for GET Requests

6. Placing a Suspense Boundary at the Wrong Level