React JS Tutorial For Beginners : Part 44 Todo App Part 13 Resolving Key Error

preview_player
Показать описание
React JS is an open source JavaScript library used to build user interfaces.
It handles the view layer of our application.
React allows us to create large web applications that can change data without reloading the webpage.
React is created and maintained by Facebook and uses a special syntax called as JSX which allows you to mix HTML with JS.
React is in demand as a skill required by a lot of tech companies.
Рекомендации по теме
Комментарии
Автор

I didn't have unique key error because I did as:
const TodoList=({todoList}) => {
return (
<div>
{todoList.map((todoItem, index) => (
<Todo todoItem={todoItem} key={index}></Todo>
))}
</div>
)
};
was this approach okay? as I changed it to what You did.

muhammadzaidaslam
Автор

why not use the index on the map method?

satsu
Автор

When you enter a todo with same name id's become same so we should control that if same todo is entered or not

ZeckyDev
Автор

I am Vietnamese. I hope the following videos will default to English subtitles instead of German

angNguyen-yrqc