A comprehensive guide to three major changes coming to Next.js 15+ and the anticipated Next.js 16: Turbopack moving toward becoming the default production bundler (replacing Webpack), the React Compiler graduating from experimental to built-in for automatic memoization, and a restructured opt-in caching layer using 'use cache', cacheLife(), and cacheTag() APIs. Covers migration checklists, before/after config examples, memoization refactoring patterns, and a step-by-step upgrade sequence including codemods and benchmarking guidance.
Nguồn: https://www.sitepoint.com/nextjs-16-turbopack-react-compiler-cache. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.
Hầu hết hướng dẫn về React compound components đều dùng ví dụ <Select>/<Option> không phù hợp, vì pattern này chỉ tối ưu cho layout linh hoạt với nội dung tĩnh (tabs, cards), chứ không phải danh sách dữ liệu động. Khi dữ liệu đến từ API, sử dụng props API đơn giản hơn, type-safe hơn, và dễ xử lý sắp xếp/lọc/ảo hóa.
Lập trình viên nên đọc bài này để tránh nhầm lẫn giữa mô hình Compound Components—dành cho giao diện layout tĩnh—với trường hợp sử dụng cho danh sách dữ liệu động, từ đó tối ưu hóa code, tránh lỗi type safety và áp dụng đúng nguyên tắc thiết kế React hiệu quả.
Bài viết cung cấp 35 câu hỏi phỏng vấn React dành cho senior developer, xoay quanh các chủ đề như rendering behavior, hooks (useState, useRef, useEffect, useLayoutEffect), tính năng React 19 (Actions, useOptimistic, React Compiler), Server Components, tối ưu hiệu suất, quản lý state, React Router và testing. Mỗi câu hỏi đi kèm ví dụ code thực tế và giải thích chi tiết, tập trung vào hiểu bản chất React thay vì ghi nhớ API.
Lập trình viên senior cần đọc bài này để khắc phục lỗi thường gặp trong các câu hỏi thực tế về React—không chỉ là nhớ kỹ thuật mà là hiểu sâu về cơ chế hoạt động, từ rendering đến các tính năng mới nhất như Server Components và React Compiler, giúp họ ứng dụng kiến thức một cách chính xác trong công việc.
Bài viết hướng dẫn cách xây dựng một component React đa hình có kiểu (polymorphic) bằng …
Lattice là framework UI điều khiển từ server cho Laravel, cho phép định nghĩa toàn bộ giao …
A step-by-step guide to building an animated badge component using shadcn/ui, Tailwind CSS, and Framer Motion (motion/react). Covers installing a pre-built badge from the Shadcn Space registry via CLI, then walks through wrapping the Badge component with motion.create(), adding layered radial-gradient glow effects, animating a check icon with easeOutBack spring physics, and staggering individual letter animations using Variants and custom index values. Includes a customization example showing how to create a blue 'Verified' variant by swapping colors and icons.
Lucide has released version 1.0, its first stable major release, featuring over 1,600 icons. The key changes include removal of all trademarked brand icons (GitHub, Facebook, Figma, Slack) due to legal pressure and maintenance concerns, with Simple Icons recommended as an alternative. The lucide-react package was reduced by 32.3% (from 11.4 MB to ~1 MB gzipped) by dropping the legacy UMD build in favor of ESM and CommonJS only. New context providers for React, Vue, Svelte, and Solid allow setting shared icon defaults. Other additions include a standalone Angular package, renamed Vue package, improved accessibility defaults, shadow DOM support, and updated documentation. Developers upgrading from v0 need to handle breaking changes around removed brand icons and renamed packages.
A deep dive into how React renderers work, written by the maintainer of React Native Testing Library (RNTL) who built a new custom test renderer after React Test Renderer was deprecated in React 19. Covers the three core trees React uses (element tree, Fiber tree, host instance tree), the two-phase reconciler process (rendering and committing), the HostConfig interface renderers must implement, and the difference between mutation and persistence renderer modes. Includes concrete code examples of host instance types and operations, plus lessons learned about tight coupling between React, Reconciler, and renderer versions.
Bulletproof React is an architectural approach for React applications inspired by Alan Alickovic's open-source project. It centers on feature-based organization where all code related to a feature lives together, rather than grouping by file type. Key principles include: exposing only approved exports via public API index files, enforcing boundaries with ESLint rules, separating state by type (UI state in components, app state in Zustand, server state in TanStack Query, URL state in the browser), centralizing API communication in a dedicated layer, and treating security and performance as architectural concerns from day one. Testing uses Vitest, React Testing Library, Playwright, and MSW. The approach adds overhead and may be overkill for small projects, but pays dividends as codebases grow.