Tag

useMemo

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Jul 28, 2024 · Frontend Development

When to Drop useCallback and useMemo? A Practical React Performance Guide

Swizec Teller argues that in most React projects the useCallback and useMemo hooks are unnecessary, explains how they work, shows common pitfalls, and provides concrete alternatives for writing cleaner, more efficient components without over‑optimizing.

HooksReActfrontend
0 likes · 8 min read
When to Drop useCallback and useMemo? A Practical React Performance Guide
Code Mala Tang
Code Mala Tang
Jul 13, 2024 · Frontend Development

Why Do Some React Child Components Re‑Render While Others Don’t?

This article explains how parent and child components interact in React, why certain child components re‑render on state changes, and how techniques like React.memo, useCallback, and useMemo can be used to control rendering performance.

Component Re-renderingReActReact.memo
0 likes · 13 min read
Why Do Some React Child Components Re‑Render While Others Don’t?
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.

Performance OptimizationReActState Management
0 likes · 20 min read
React Rendering Performance Optimization: Case Study and Practical Techniques
KooFE Frontend Team
KooFE Frontend Team
Jun 4, 2023 · Frontend Development

Mastering React’s useMemo: When to Cache, Shallow vs Deep Comparisons

This article explains how React's useMemo hook caches expensive calculations, covers its default shallow reference comparison, and shows techniques such as JSON.stringify and lodash.isEqual for deep comparison to prevent unnecessary re‑renders.

ReActdeep-comparisonfrontend
0 likes · 9 min read
Mastering React’s useMemo: When to Cache, Shallow vs Deep Comparisons
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.

ContextReActkey
0 likes · 15 min read
Mastering React Re-renders: When, Why, and How to Optimize Performance
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 2, 2021 · Frontend Development

When to Use React.memo vs useMemo: A Practical Comparison

This article explains memoization, demonstrates why it matters in React, and provides side‑by‑side examples of React.memo and useMemo, showing how each technique can prevent unnecessary re‑renders and improve performance in functional components.

MemoizationReActReact.memo
0 likes · 12 min read
When to Use React.memo vs useMemo: A Practical Comparison
ByteFE
ByteFE
Apr 26, 2021 · Frontend Development

Optimizing Long Page Rendering in React: Lazy Loading, Intersection Observer, and Memoization

This article explains how to improve performance of long React pages by rendering components screen‑by‑screen using viewport detection (getBoundingClientRect or Intersection Observer), grouping data, debouncing scroll handlers, and applying React.memo to prevent duplicate data requests.

Lazy LoadingPerformance OptimizationReAct
0 likes · 9 min read
Optimizing Long Page Rendering in React: Lazy Loading, Intersection Observer, and Memoization
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.memoperformance
0 likes · 15 min read
Boost React Performance: Master React.memo, useCallback & useMemo
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jul 11, 2019 · Frontend Development

Master React.memo, useCallback & useMemo to Supercharge Component Performance

This article explains how React.memo, its second‑argument comparator, and the related hooks useCallback and useMemo can be used to avoid unnecessary re‑renders, handle function props correctly, and dramatically improve rendering performance in complex functional components.

ReActfrontendmemo
0 likes · 10 min read
Master React.memo, useCallback & useMemo to Supercharge Component Performance