hiteshchoudhary / chai-aur-react

chai aur react series on youtube
7.72k stars 1.01k forks source link

Update TodoItem.jsx #122

Closed rishabh417 closed 2 months ago

rishabh417 commented 4 months ago

Required chages in setIsTodoEditable

else {setIsTodoEditable((prev) => !prev)};

Should be replace with setIsTodoEditable((prev) => !prev);

Since it is always going to change the status of whether the text is editable or not whenever clicked on Toggle(checkbox).