score:2

Accepted answer
setState((oldState) => ({
  ...oldState,
  image: file.secure_url,
  largeImage: file.eager[0].secure_url,
}));

Related Query

More Query from same tag