A “key” is a special string attribute you need to include when creating lists of elements. Keys give the elements a stable identity. Keys help React identify which items have changed, are added, or are removed. This results in a much more efficient update of the user interface.
0 comments:
Post a Comment