showing results for - "splice state react"
Eleonora
24 Feb 2018
1const array = [...this.state.people];
2array.splice(i, 1);
3this.setState({people: array}); 
4
5                            
6
Aarón
14 Aug 2020
1const array = [...this.state.people];
2array.splice(i, 1);
3this.setState({people: array});