Understanding unique keys for array children in React.js

Posted by Jennifer | Updated on

Understanding unique keys for array children in React.js. In the sample, if we don’t give a key to the element and we want to update only the object.city, React needs to re-render the whole row vs just the element.

Here is the code:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers