[React] todolist 구현완성본
미루고미루던 todolist 추가삭제수정 기능 다 구현했다 App.js import { useState } from "react"; import TodoList from "./TodoList"; function App() { const [addValue, setAddvalue] = useState(""); const [todos, setTodos] = useState([ { id: 1, text: "잠자기", checked: true }, { id: 2, text: "밥먹기", checked: true }, { id: 3, text: "책보기", checked: false }, ]); const handleAdd = () => { const todo = { id: todos.length + 1, text..
2023. 12. 6.