Open zeemohamed7 opened 1 month ago
https://github.com/twix0217/react-state-management-lab/blob/1cfca9a2046d3c1e31aa566466c27d4ff7451967/src/App.jsx#L5-L76 Your zombieFighters need to be saved as a state variable.
https://github.com/twix0217/react-state-management-lab/blob/1cfca9a2046d3c1e31aa566466c27d4ff7451967/src/App.jsx#L95-L106 Removing a zombie from the team causes all of them to be removed with only the price of one being removed.
https://github.com/twix0217/react-state-management-lab/blob/1cfca9a2046d3c1e31aa566466c27d4ff7451967/src/App.jsx#L108-L119 I recommend relooking at the lab and this function as it's incorrectly handling attributes.
Ignore the last issue as it's not required, just make sure to save your state variables! Good job! No need to resubmit
https://github.com/twix0217/react-state-management-lab/blob/1cfca9a2046d3c1e31aa566466c27d4ff7451967/src/App.jsx#L5-L76 Your zombieFighters need to be saved as a state variable.
https://github.com/twix0217/react-state-management-lab/blob/1cfca9a2046d3c1e31aa566466c27d4ff7451967/src/App.jsx#L95-L106 Removing a zombie from the team causes all of them to be removed with only the price of one being removed.
https://github.com/twix0217/react-state-management-lab/blob/1cfca9a2046d3c1e31aa566466c27d4ff7451967/src/App.jsx#L108-L119 I recommend relooking at the lab and this function as it's incorrectly handling attributes.