How do I create a confirmation delete popup in react JS?
App Component:
toISOString(). slice(0, 10); const newToDo = task: inputValue, id: ide, date: date ; setToDos([... todos, newToDo]); setInputValue(""); ; const handleDelete = (id) => setPopup(true); let filteredData = todos. filter((todo) => todo.id !==