showing results for - "remove item react"
Emil
02 Feb 2018
1delete(id){
2    this.setState(prevState => ({
3        data: prevState.data.filter(el => el != id )
4    }));
5}
6