Skip to content

Commit

Permalink
React Keys: Add missing word (#28704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asartea authored Aug 26, 2024
1 parent 84cd626 commit be7d263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/getting_started_with_react/keys_in_react.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If the list were to change, one of two things *should* happen:

Assuming we want to hunt down that one specific item that was changed and NOT re-render the entire list. We need something to track that specific item. We can track down a specific item by using a `key`.

When the list is updated for whatever reason, (either from a server or a user interaction), React matches the `keys` of each of the previous list to the updated list. If there were any changes, React will only update the items that have changed.
When the list is updated for whatever reason, (either from a server or a user interaction), React matches the `keys` of each of the previous list items to the updated list. If there were any changes, React will only update the items that have changed.

As long as `keys` remain consistent and unique, React can handle the DOM effectively and efficiently.

Expand Down

0 comments on commit be7d263

Please sign in to comment.