Answers for "remove item react"

0

remove item react

delete(id){
    this.setState(prevState => ({
        data: prevState.data.filter(el => el != id )
    }));
}
Posted by: Guest on March-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language