You have an extraneous pair of brackets in the delete handler, so you end up with a list with 1 item containing the rest.
You'll want
const itemDeleteHandler = (id) => {
setItemListState((prevState) =>
prevState.filter(
(item, index) =>
parseInt(id) !== index,
),
);
};
instead.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…