Tagged articles
13 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Dec 11, 2024 · Frontend Development

Mastering React Rendering: When and How Components Re‑Render

This article explains React's rendering pipeline—including initial and update renders—identifies the factors that cause component re‑rendering, and demonstrates how to use React.memo, useMemo, and useCallback to eliminate unnecessary renders and improve performance.

ReactReact.memoRendering
0 likes · 12 min read
Mastering React Rendering: When and How Components Re‑Render
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 13, 2024 · Frontend Development

React Rendering Performance Optimization: Case Study and Practical Techniques

This article explains common React performance‑optimization methods, walks through a real‑world form‑editor use case, details the profiling, diagnosis, and step‑by‑step improvements—including memoization, callback stabilization, diff filtering, and pure‑function components—that reduced render time from 195 ms to under 10 ms.

ReactState Managementmemo
0 likes · 20 min read
React Rendering Performance Optimization: Case Study and Practical Techniques
KooFE Frontend Team
KooFE Frontend Team
Jan 10, 2023 · Frontend Development

Mastering React Ref Callbacks: When and How to Use Them

This article explains the two meanings of React refs, how ref callbacks work during component mount and unmount, and presents four practical scenarios—scrolling, measuring, portal rendering, and sharing DOM elements—complete with code examples and best‑practice tips.

ref callbackuseCallbackuseRef
0 likes · 13 min read
Mastering React Ref Callbacks: When and How to Use Them
KooFE Frontend Team
KooFE Frontend Team
Sep 18, 2022 · Frontend Development

PureComponent vs Hooks: Mastering React Re‑renders and Performance

This article explores how PureComponent and shouldComponentUpdate address unnecessary re‑renders in class components, compares them with functional components and hooks, and provides practical techniques—including React.memo, useCallback, setState updater functions, and refs—to optimize rendering performance in modern React applications.

PureComponentReacthooks
0 likes · 20 min read
PureComponent vs Hooks: Mastering React Re‑renders and Performance
KooFE Frontend Team
KooFE Frontend Team
Aug 14, 2022 · Frontend Development

Mastering React Re-renders: When, Why, and How to Optimize Performance

This comprehensive guide explains what React re‑renders are, distinguishes necessary from unnecessary re‑renders, outlines the four triggers—state, parent re‑render, context, and hooks—and provides practical patterns and anti‑patterns, including memoization, useMemo/useCallback, and key management, to improve component performance.

KEYReactcontext
0 likes · 15 min read
Mastering React Re-renders: When, Why, and How to Optimize Performance
QQ Music Frontend Team
QQ Music Frontend Team
Mar 5, 2021 · Frontend Development

Boost React Performance: Master React.memo, useCallback & useMemo

An in‑depth guide explains how React.memo, useCallback, and useMemo work together to prevent unnecessary re‑renders, includes practical code examples, memoization concepts, source‑code analysis, and best‑practice recommendations for optimizing front‑end performance in modern.

ReactReact.memouseCallback
0 likes · 15 min read
Boost React Performance: Master React.memo, useCallback & useMemo
Youzan Coder
Youzan Coder
May 22, 2020 · Frontend Development

Why Does React Hooks Show Stale State? Unraveling Closures and Dependency Arrays

This article explores why React Hooks can display stale state values, comparing functional and class components, explaining closure behavior, dependency‑array mechanics, proper data‑fetching patterns, and when to replace useState with useReducer to avoid common pitfalls.

ReactState Managementfunctional components
0 likes · 13 min read
Why Does React Hooks Show Stale State? Unraveling Closures and Dependency Arrays