isChecked is a state Variable and it will be update on check and unchecked. please check proper code in video description. const [isChecked, setisChecked]= useState([]); check the below code link on github. github.com/devopsdeveloper1107/React-practical/blob/main/Delete%20Multiple%20records%20Using%20Checkbox%20in%20React%20js