filmov
tv
Code With Me - Edit Task Modal - Kanban Task Tracker

Показать описание
Code With Me! In this video we update our Task Modal so that it can handle editing a current task in our Kanban Board.
We pass the task data that we already have access to over as a prop to our Task Modal file, and update the useMakeTask hook to accept this data and utilize it to set the initial state. If the Task exists, the state is set to utilize the task data, otherwise we start with blank data.
Trying to make these in 30-minute chunks! Hopefully you're enjoying following along!
We pass the task data that we already have access to over as a prop to our Task Modal file, and update the useMakeTask hook to accept this data and utilize it to set the initial state. If the Task exists, the state is set to utilize the task data, otherwise we start with blank data.
Trying to make these in 30-minute chunks! Hopefully you're enjoying following along!