Doubt in function setState

Asked

Viewed 28 times

0

I wonder why use and working when we use setState, in a few moments I see examples like this below:

    this.setState({
      edit: {
        ...this.state.edit
      }
    });

Why does it use the three points (...) before this.state.Edit, what does it do?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.