Solving component loosing focus problem

Note Statistics

Note Statistics

  • Viewed 89 times
Thu, 08/27/2020 - 21:25

Check key for items in a list

If your component or parent is part of a list of items

  1. make sure the key is unique to that item
  2. make sure that key does not change. I an attribute can change don't use it as key.

Are you using a HOC to dynamically create a component?

Reference would change if a new component is created every time. Avoid this.

Authored by