Skip to content

Commit 283ced9

Browse files
committed
docs: update ref vs state description to clarify ref does not trigger re-render
1 parent af9d1cf commit 283ced9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/referencing-values-with-refs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Ref가 State보다 덜 "엄격한" 것으로 생각될 수 있습니다. 예를
177177
| Ref | State |
178178
|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
179179
| `useRef(initialValue)``{ current: initialValue }`를 반환합니다. | `useState(initialValue)`는 State 변수의 현재 값과 Setter 함수 `[value, setValue]`를 반환합니다. |
180-
| State를 바꿔도 리렌더링 하지 않습니다. | State를 바꾸면 리렌더링 합니다. |
180+
| Ref를 바꿔도 리렌더링 하지 않습니다. | State를 바꾸면 리렌더링 합니다. |
181181
| Mutable: 렌더링 프로세스 외부에서 `current` 값을 수정 및 업데이트할 수 있습니다. | Immutable: State를 수정하기 위해서는 State 설정 함수를 반드시 사용하여 리렌더링 대기열에 넣어야 합니다. |
182182
| 렌더링 중에는 `current` 값을 읽거나 쓰면 안 됩니다. | 언제든지 State를 읽을 수 있습니다. 그러나 각 렌더링마다 변경되지 않는 자체적인 State의 [Snapshot](/learn/state-as-a-snapshot)이 있습니다. |
183183

0 commit comments

Comments
 (0)