CRUD Flashcards
1
Q
CRUD
A
C - Create (AddTask, AddTodolist)
R - Read (map)
U - Update (checkBox, Input)
D - Delete (RemoveTask, RemoveTodolist)
Create
const [title, setTitle] = useState(‘ ‘)
Update
const [title, setTitle] = useState(‘Old Title ‘)
Old Title - значение, которое мы хотим поменять (берем из глобального state)