score:1

Accepted answer

you should add checked in input:

<input ... checked={item.iscompleted} />

score:0

don't use index for key in your map items, use item id instead of it. it's the cause of problem

you can read here why do we need keys in reac lists https://adhithiravi.medium.com/why-do-i-need-keys-in-react-lists-dbb522188bbb


Related Query

More Query from same tag