mahendraputra21 / todoapp-react-ts

0 stars 0 forks source link

MyTodoApp - issue when Update /Edit existing Todo #2

Open mahendraputra21 opened 1 year ago

mahendraputra21 commented 1 year ago

image

Check the render method of ToDoList. See https://reactjs.org/link/warning-keys for more information. at li at ToDoList (http://localhost:3000/static/js/bundle.js:395:23) at div at App (http://localhost:3000/static/js/bundle.js:38:64)

Aarize29 commented 1 year ago

You need to provide some unique id or anything which is unique as a key for each Todolist elements, It makes all element unique, btw it doesn't harm your app, It's just a warning

Aarize29 commented 1 year ago

https://stackoverflow.com/questions/28329382/understanding-unique-keys-for-array-children-in-react-js

the above link will help you !!!!!!!

mahendraputra21 commented 1 year ago

You need to provide some unique id or anything which is unique as a key for each Todolist elements, It makes all element unique, btw it doesn't harm your app, It's just a warning

wow thanks @Aarize29 will try it...