1{...this.state} spreads out the "own" enumerable properties in
2props as discrete properties on the Modal element you're creating.
3For instance, if this.props contained a: 1 and b: 2, then
4
5<Modal {...this.state} title='Modal heading'>
6
7would be the same as
8
9<Modal a={this.state.a} b={this.state.b} title='Modal heading'>
1let numberStore = [0, 1, 2];
2let newNumber = 12;
3numberStore = [...numberStore, newNumber];