mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Remove the redundant code (#4898)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user