I\'m building a React component that accepts a JSON data source and creates a sortable table.
Each of the dynamic data rows has a unique key assigned to it but I\'m stil
This is a warning, But addressing this will make Reacts rendering much FASTER,
This is because React
needs to uniquely identify each items in the list. Lets say if the state of an element of that list changes in Reacts Virtual DOM
then React needs to figure out which element got changed and where in the DOM it needs to change so that browser DOM will be in sync with the Reacts Virtual DOM.
As a solution just introduce a key
attribute to each li
tag. This key
should be a unique value to each element.