From 3d7f370b6468a1b313aa42195f5a0251399efd6a Mon Sep 17 00:00:00 2001 From: wo-o29 Date: Mon, 25 Aug 2025 21:56:17 +0900 Subject: [PATCH] docs: remove nonexistent 'profile' and update 'editButton' to 'button' DOM references, fix Fragment indentation --- src/content/learn/reacting-to-input-with-state.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/content/learn/reacting-to-input-with-state.md b/src/content/learn/reacting-to-input-with-state.md index c0de8d8ac..cc5352a14 100644 --- a/src/content/learn/reacting-to-input-with-state.md +++ b/src/content/learn/reacting-to-input-with-state.md @@ -227,7 +227,7 @@ export default function Form({

} - + ); } ``` @@ -749,8 +749,7 @@ function show(el) { } let form = document.getElementById('form'); -let profile = document.getElementById('profile'); -let editButton = document.getElementById('editButton'); +let button = document.getElementById('button'); let firstNameInput = document.getElementById('firstNameInput'); let firstNameText = document.getElementById('firstNameText'); let lastNameInput = document.getElementById('lastNameInput'); @@ -951,8 +950,7 @@ function show(el) { } let form = document.getElementById('form'); -let profile = document.getElementById('profile'); -let editButton = document.getElementById('editButton'); +let button = document.getElementById('button'); let firstNameInput = document.getElementById('firstNameInput'); let firstNameText = document.getElementById('firstNameText'); let lastNameInput = document.getElementById('lastNameInput'); @@ -1058,8 +1056,7 @@ function show(el) { } let form = document.getElementById('form'); -let profile = document.getElementById('profile'); -let editButton = document.getElementById('editButton'); +let button = document.getElementById('button'); let firstNameInput = document.getElementById('firstNameInput'); let firstNameText = document.getElementById('firstNameText'); let lastNameInput = document.getElementById('lastNameInput'); @@ -1177,8 +1174,7 @@ function show(el) { } let form = document.getElementById('form'); -let profile = document.getElementById('profile'); -let editButton = document.getElementById('editButton'); +let button = document.getElementById('button'); let firstNameInput = document.getElementById('firstNameInput'); let firstNameText = document.getElementById('firstNameText'); let lastNameInput = document.getElementById('lastNameInput');