Keys help React identify which items have changed, are added, or are removed. Keys should be given to the elements inside the array to give the elements a stable identity. The best way to pick a key is to use a string that uniquely identifies a list item among its siblings. Most often you would use IDs from your data as keys.
Read More !Writing on javascript concepts, react js , and human behavior.
All of my long-form thoughts on programming, human behavior.
A shallow copy of an object is a copy whose properties share the same reference as those of the source object from which the copy was made. So, when you do any modification in reference or source object that causes the change in the source object. And unintentionally your source object will be changed.
Read More !you have a situation where you want to open a bookstore to sell books. So, you need a store and books on bookshelf where you can show a different categories of books for your consumer. Now you thought to keep books for that you have to have books selves. So, you have different shelves for different book categories. It is also easy for consumers to pick books and sales could start happening.
Read More !