Home/Tags/Next.js

#Next.js

Collection

This aggregates CodeNodeX AI community articles and discussions related to Next.js, covering concept explanations, tool comparisons, engineering practices, common issues, and indie hacking experience.

If you're researching Next.js, start with high-quality long-form articles, then join post discussions for a complete understanding-to-practice path.

@admin·9 min read·Web Development

React Suspense and Data Fetching

Suspense makes components waiting for data declarative: instead of manually managing loading state, boundaries show fallbacks automatically. Learn how it works with TanStack Query, streaming SSR with Server Components, boundary design, Error Boundaries, and when imperative async work should not use Suspense.

#Next.js #React♥ 1110 comments
@admin·9 min read·Web Development

Real-Time Web: An In-Depth Comparison of SSE and WebSocket

Choosing between SSE and WebSocket for server push? This article explains their fundamental differences, ideal use cases, proxy and firewall compatibility, connection limits, and provides clear guidance on when to use each.

#Next.js #TypeScript♥ 1130 comments
@admin·12 min read·Web Development

React Context Performance Pitfalls and Optimization

Context is easy to use, but when its value changes, every consumer rerenders. In high-frequency scenarios, that is a performance killer. This article explains Context rerendering, why putting all state into one Context is an anti-pattern, how to split it, and when to switch to Zustand.

#Next.js #React♥ 1160 comments
@admin·10 min read·Web Development

React Data Fetching: From fetch to React Query

`useEffect + fetch` looks simple, but it is full of traps: races, duplicate requests, no cache, and no retries. This article traces React data fetching from `useEffect` to React Query/SWR and Server Components, explaining when to use each and why RSC and RQ complement rather than replace each other.

#Next.js #React♥ 1330 comments
@admin·11 min read·Web Development

React Code Splitting and Lazy Loading

Bundle everything into one JS file and make users download several MB before first paint? Split code by route or component into small chunks and load them only when needed. Learn React.lazy + Suspense, Next.js automatic splitting, route- vs component-level splitting, preloading, and why too many chunks can be slower.

#Next.js #React♥ 1380 comments
@admin·10 min read·Web Development

Web Vitals: Lab Data vs. Field Data

A high Lighthouse score does not guarantee a fast user experience. This article explains the gap between simulated lab data and real-user field data, why field results are authoritative, how to collect them with CrUX, the web-vitals library, and RUM, and when to use each data source.

#Next.js #React♥ 1410 comments
@admin·11 min read·Web Development

Next.js App Router Deep Dive: Routing, Layouts, and Data Flow

The App Router is central to Next.js, yet many developers underuse nested layouts, parallel routes, intercepting routes, and dynamic segments. This article covers its file conventions, advanced routing patterns, Server/Client Component data flow, and the key differences when migrating from the Pages Router.

#Next.js #React♥ 1480 comments
@admin·13 min read·Web Development

Web Performance Monitoring (RUM): From Collection to Alerts

Lighthouse only runs during development, but who watches real users in production? RUM (Real User Monitoring) collects real-user LCP, INP, CLS, and JavaScript errors. This article covers collection with the web-vitals library, reporting, dashboards, and alerts, turning "fast in the lab" into "fast for users."

#Next.js #React♥ 1530 comments