If You're Going to Use Next.js - At Least Use it Right | HackerNoon
Briefly

This article emphasizes the importance of properly utilizing Next.js features, particularly focusing on server components while minimizing client-side code. It suggests using native APIs like fetch, avoiding unnecessary libraries, and utilizing native forms with server actions and validation to optimize performance. It also encourages using Tailwind CSS over deprecated libraries for styling and highlights that state management should primarily remain on the server. The guidance aims to help React developers maximize the advantages of Next.js by shifting focus from a purely client-centered architecture to a more efficient server-first approach.
Abusing use client kills the benefits of React Server Components. Choose server-first in Next.js with client-side code as the exception.
Use native fetch for SSR apps as it's optimized, context-aware, and supports built-in caching, unless interceptors are a must.
Default to server components and limit client state to minimize client-side JavaScript, enhancing performance.
Consider using Tailwind CSS instead of styled-components for styling, since it's preconfigured and more suitable for SSR.
Read at Hackernoon
[
|
]