SyntaxFix
Write A Post
Hire A Developer
Questions
removePeople(e){ var array = this.state.people; var index = array.indexOf(e.target.value); // Let's say it's Bob. array.splice(index,1); }
Redfer doc for more info