Created
November 5, 2017 21:26
-
-
Save antonioiksi/6ea2ffa8dd8607f4fd59897b709fc3d7 to your computer and use it in GitHub Desktop.
remove item from array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.setState({ | |
query: this.state.query.filter((_,i) => i !== removeId) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
very cool stuff