Tag

PureComponent

0 views collected around this technical thread.

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.

HooksMemoizationPureComponent
0 likes · 20 min read
PureComponent vs Hooks: Mastering React Re‑renders and Performance
QQ Music Frontend Team
QQ Music Frontend Team
Oct 20, 2019 · Frontend Development

When Should You Use Class, Functional, or Pure Components in React?

This article explains the differences between React class components, functional (stateless) components, and PureComponent, shows their source code, discusses shallow equality checks, introduces the memo higher‑order component, and provides practical guidelines for choosing the right component type to improve performance.

Class ComponentFunctional ComponentPerformance
0 likes · 10 min read
When Should You Use Class, Functional, or Pure Components in React?
转转QA
转转QA
May 29, 2018 · Frontend Development

Performance Analysis and Component Splitting Strategies in React (DVA + Ant Design)

This article examines React rendering performance, explains why excessive re‑renders hurt efficiency, and proposes component‑splitting principles—using PureComponent and ImmutableJS—to achieve high cohesion, low coupling, and optimal update rendering in a DVA‑based frontend project.

Component SplittingDVAFrontend
0 likes · 5 min read
Performance Analysis and Component Splitting Strategies in React (DVA + Ant Design)
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 16, 2017 · Frontend Development

Why React PureComponent’s Shallow Comparison Fails on Nested Objects

This article explains the shallow comparison used by React's PureComponent, details the implementation of shallowEqual and Object.is, and shows why such a shallow check cannot correctly compare nested objects, providing code examples and clear explanations.

FrontendJavaScriptObject.is
0 likes · 7 min read
Why React PureComponent’s Shallow Comparison Fails on Nested Objects