FrontEnd/React8 [ React ] Rendering Lists (feat. key ) key 란 ? a string or a number that uniquely identifies it among other items in that array 중요한 이유 This becomes important if your array items can move (e.g. due to sorting), get inserted, or get deleted. A well-chosen key helps React infer what exactly has happened, and make the correct updates to the DOM tree. lets React identify the item throughout its lifetime 리스트 렌더링할 때 key 값 만드는 방법 => 리스트에 직접 .. 2023. 10. 24. [ React ] 컴포넌트 생명주기 보호되어 있는 글 입니다. 2023. 10. 24. 이전 1 2 다음