20 reasons to consider @nextjs over create-react-app: 1


20 reasons to consider @nextjs over create-react-app:

1. Faster startup (compiles pages on-the-fly)

2. Faster builds (uses swc)

3. Static generation support

4. Server-side rendering

5. Strong opinions = less decision fatigue and easier to switch between projects

#react
6. Highly active development

7. Built-in, file-based routing

8. Auto code splitting by route (splits CSS modules too!). So, "lazy loads" by default

9. Auto prefetches links

10. Automatically renders to avoid layout shift
11. next/image optimizes images, even for external sources. Optimizes them on-demand instead of at build time.

12. Nicer error page

13. Built-in Head component for title, favicon, meta tags

14. Built-in styled-jsx (but can use any CSS-in-JS lib)

15. Eliminates unused CSS
16. Hosting, CI, and deployment via @vercel. Ephemeral branches (Push Git branch to deploy preview)

17. Supports React 18 server components

18. Built-in scroll restoration

19. Built-in BFF - Add files to pages/api to get a serverless API

20. Supports Express middleware

View original on X