From 4a87b19ef30581e6842d3f94a99df736cbf31fd8 Mon Sep 17 00:00:00 2001 From: Guihua Ran Date: Fri, 12 Aug 2022 16:37:24 +0800 Subject: [PATCH] Remove the redundant code (#4898) --- beta/src/pages/learn/choosing-the-state-structure.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/beta/src/pages/learn/choosing-the-state-structure.md b/beta/src/pages/learn/choosing-the-state-structure.md index 1d90acc3..e46beac1 100644 --- a/beta/src/pages/learn/choosing-the-state-structure.md +++ b/beta/src/pages/learn/choosing-the-state-structure.md @@ -2042,7 +2042,6 @@ const initialItems = [ ]; export default function TravelPlan() { - const [title, setTitle] = useState(''); const [items, setItems] = useState(initialItems); const [total, setTotal] = useState(3); const [packed, setPacked] = useState(1); @@ -2182,7 +2181,6 @@ const initialItems = [ ]; export default function TravelPlan() { - const [title, setTitle] = useState(''); const [items, setItems] = useState(initialItems); const total = items.length;