From 2c8580b62f6d5e068f5db5494c1a97f10a1b7fcb Mon Sep 17 00:00:00 2001 From: devjaeyoon Date: Sun, 4 May 2025 23:22:19 +0900 Subject: [PATCH] docs: update content/learn/state-a-components-memory.md --- src/content/learn/state-a-components-memory.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/learn/state-a-components-memory.md b/src/content/learn/state-a-components-memory.md index 980d6bf55..6de8ea89f 100644 --- a/src/content/learn/state-a-components-memory.md +++ b/src/content/learn/state-a-components-memory.md @@ -1450,9 +1450,7 @@ export default function FeedbackForm() { #### 불필요한 state 제거하기 {/*remove-unnecessary-state*/} -이 예시에서 버튼이 클릭 되면 사용자의 이름을 요청하고 그런 다음 환영 메시지를 표시해야 합니다. 이름을 유지하기 위해 state를 사용하려고 했지만, 어떤 이유로 항상 "Hello, !"라고 표시됩니다. - -When the button is clicked, this example should ask for the user's name and then display an alert greeting them. You tried to use state to keep the name, but for some reason the first time it shows "Hello, !", and then "Hello, [name]!" with the previous input every time after. +이 예시에서 버튼을 클릭하면 사용자의 이름을 요청한 후 그 이름으로 환영 메시지를 표시해야 합니다. 이름을 유지하기 위해 state를 사용하려고 했지만, 첫 번째에는 항상 "Hello, !"라고 표시되고 그다음부터는 항상 "Hello, [이전 입력값]!"이 나옵니다. 이 코드를 수정하려면 불필요한 state 변수를 제거하세요. ([왜 이것이 작동하지 않는지](/learn/state-as-a-snapshot)에 대해서는 나중에 설명하겠습니다.)