FRONTEND·중요도 7·2026. 06. 29.·Dev.to
Immutability — Immutable Data
── KO ──────────────────
불변 데이터는 버그를 제거하고 코드를 더 안전하게 만든다.
불변 데이터는 한 번 생성되면 수정할 수 없는 데이터를 말한다. 이 방식은 원치 않는 사이드 이펙트를 제거하여 버그를 줄이는데 기여한다. React에서 상태 변화를 추적하는 방식도 불변성에 기반하고 있으며, 메모리와 CPU 사용량의 trade-off가 존재한다.
── EN ──────────────────
Immutable data reduces bugs and makes code safer.
Immutable data refers to data that cannot be modified once created. This approach helps eliminate unwanted side effects, thus reducing bugs. React's method of tracking state changes is also based on immutability, and there is a trade-off in memory and CPU usage.