주요 콘텐츠로 건너뛰기

"usecontext" 태그가 포함된 1개의 글개의 글

모든 태그 보기

React's Context API: Friend or Architectural Foe?

· 15분 읽기
Evan Carter
Evan Carter
Senior frontend

TLDR:

React Context API Guide

React’s Context API removes prop drilling and enables clean dependency injection—but it can also introduce hidden coupling and expensive re-renders when it becomes “global state by accident.” This article explains when to use context, how to optimize it, how to pair useContext with useReducer, and how Feature-Sliced Design helps keep context scoped, explicit, and scalable.