The React team recommends using keys that are ________ and not based on indices for list items to optimize the reconciliation process.

  • arbitrary
  • random
  • sequential
  • unique
To optimize the reconciliation process in React, it's recommended to use unique keys for list items. Using unique keys ensures that React can accurately track and update individual items in a list, even if items are added, removed, or rearranged. This is more effective than using sequential or arbitrary keys.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *