Browse Source

Remove the redundant code (#4898)

main
Guihua Ran 2 years ago
committed by GitHub
parent
commit
4a87b19ef3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/choosing-the-state-structure.md

2
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;

Loading…
Cancel
Save