From 29837b75f9ec1e37bd2d0b8dde4cc3ce55a098fe Mon Sep 17 00:00:00 2001 From: AQ-masatoshi-yamaguchi <69567949+AQ-masatoshi-yamaguchi@users.noreply.github.com> Date: Wed, 2 Feb 2022 15:13:00 +0900 Subject: [PATCH 1/8] initial commit --- src/App.jsx | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 478bf47..b8caf0c 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,36 @@ import "./styles.css"; export const App = () => { - return
; + return ( + <> +未完了のTODO
+完了のTODO
+未完了のTODO
+未完了のTODO
完了のTODO
+完了のTODO
未完了のTODO
完了のTODO
未完了のTODO
From 43794c235345ab604be0a6ba04fa2a2287f34707 Mon Sep 17 00:00:00 2001 From: AQ-masatoshi-yamaguchi <69567949+AQ-masatoshi-yamaguchi@users.noreply.github.com> Date: Wed, 2 Feb 2022 16:17:37 +0900 Subject: [PATCH 5/8] =?UTF-8?q?=E3=82=BF=E3=82=B9=E3=82=AF=E5=89=8A?= =?UTF-8?q?=E9=99=A4=E6=A9=9F=E8=83=BD=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 38d248b..942a263 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -20,6 +20,12 @@ export const App = () => { setTodoText(""); }; + const onClickDelete = (index) => { + const newTodos = [...incompleteTodos]; + newTodos.splice(index, 1); + setIncompleteTodos(newTodos); + }; + return ( <>未完了のTODO
完了のTODO
未完了のTODO
-完了のTODO
-完了のTODO
+未完了のTODO
+