skip to Main Content

Reactjs – Handle multiple input checkboxes in react

I have data like this: const [purchaseTypes, setPurchaseTypes] = useState([]); const purchaseInitData = [ { id: 1, name: 'liveType', purchaseType: 'liveType', label: 'purchase live training' }, { id: 2, name: 'courseType', purchaseType: 'courseType', label: 'purchase course videos'}]; input checkboxes: {purchaseData.map((item,…

VIEW QUESTION
Back To Top
Search