주요 콘텐츠로 건너뛰기

"react performance" 태그가 포함된 2개의 글개의 글

모든 태그 보기

A Guide to React's useCallback Hook

· 18분 읽기
Evan Carter
Evan Carter
Senior frontend

TLDR:

React's useCallback Explained

React’s useCallback isn’t about making code “faster” by default—it’s about keeping function references stable so memoized components and hook dependencies behave predictably. This guide explains referential equality, the core performance use cases with React.memo and useEffect, common anti-patterns, and how Feature-Sliced Design supports scalable, low-coupling callback boundaries in large applications.

When to useMemo: A React Performance Guide

· 17분 읽기
Evan Carter
Evan Carter
Senior frontend

TLDR:

React useMemo Optimization

useMemo can speed up React apps by caching expensive derived data and stabilizing props for memoized children—but it can also add overhead when used blindly. This guide explains practical heuristics, profiling-driven decisions, and how Feature-Sliced Design reduces render churn by enforcing boundaries and public APIs.