const handleData = (value: any) => { console.log(value,"value") let arr1: any = [] // arr = subList arr1=subList.filter((item: any, index: any) => { return item.key == value }) setSubItem(arr1) }
const handleData = (value: any) => { console.log(value,"value") let arr1: any = [] // arr = subList arr1=subList.filter((item: any, index: any) => { return item.key == value }) setSubItem(arr1) }