:point_up: Edit: @Domino987: but how can I pass state, in that function now
function TableDropDown()=>{
const[data,setData]=useState("");
//here got data from API and created dropdown
//now I want to use
}
const column=[{
title: <spam className={styles.colHeader}>name</spam>,
field: "name",
defaultFilter: data, //here in another function how can I use that state data for filtering??
customFilterAndSearch: (term, rowData) => {
console.log("term", rowData);
},]
},
<materialTable
components={{
Toolbar: TableDropDown,
}}
/>
Please help me in this
Right now just using redux to store this