onToggle(index, e){
let newItems = this.state.items.slice();
newItems[index].checked = !newItems[index].checked
this.setState({
items: newItems
})
}
-
{item.Name}
{this.state.GroupList.map((item, i) =>
)}
You checked: {JSON.stringify(this.state.GroupList.filter(item => item.checked))}

Here checked value is displayed but i want only the text "Hello"

Vaibhav ChauhanRank #963 · 2.1K reputationPosted Aug 3, 2021, 1:41 AM EDT
Vaibhav ChauhanRank #963 · 2.1K reputationPosted Aug 3, 2021, 2:35 AM EDT
selvi jpRank #4,123 · 364 reputationPosted Aug 3, 2021, 7:29 AM EDT
Vaibhav ChauhanRank #963 · 2.1K reputationPosted Aug 3, 2021, 8:47 AM EDT
Ganesan CRank #369 · 6.8K reputationPosted Aug 5, 2021, 12:52 AM EDT