NNowon Lee·Sep 21, 2025Key를 활용하여 컴포넌트 상태를 초기화하기개요 컴포넌트의 상태가 업데이트되어도 컴포넌트 내부에 배치된 컴포넌트의 상태는 그대로 유지되는 경우가 있었다. 예전에는 Props 전달 및 내부에서 useEffect를 통해서 상태를 초기 상태로 업데이트하도록 했는데 useEffect를 남용하게 되면 상태 변화 추적이 어려워지는 문제가 있었다. 그런데 useEffect 외에도 Key를 통해서 컴포넌트 상태를 초기화할 수 있다는 사실을 알게 되었다. 리스트 렌더링 React 프론트엔드에서 목록 형...3 min read·blog.nwlee.com
LLahiru Shiran·May 1, 2025Understanding React Key Prop Behavior in Material-UI Autocomplete: A Deep DiveExplore the role of React's `key` prop in Material-UI Autocomplete, its impact on reconciliation, and best practices for optimal performance4 min read·lahirushiran.hashnode.dev
JJyothi Swaroop Makena·Oct 11, 2023Understanding Keys And Their Importance In ReactWhat are keys, and why do we need them? Read this article to find out why!4 min read·redjoe0608.hashnode.dev