Ad
  • Custom User Avatar

    habit. in react etc to trigger an update props/state need to be actually different objects, not mutations. spread makes a new object instead of mutating, but if that doesn't matter then push would be a bit of a performance gain