What is a key? What are the benefits of using it in lists?
Câu hỏi
What is a key? What are the benefits of using it in lists?
Câu trả lời
Keys are a special string attribute that helps React identify which items have been changed, added or removed. They are used when rendering array elements to give them a stable identity...