Here is my react table column def where i have defined header and accesor key. Now can i use my metadata to define my columns using react table.Like how should i use columnHelper or some other def?
export const ColumnMetaData = {
columns : [
{
header: "BRANCH STATE",
accesorKey: "branchState"
},
{
header: "BRANCH GST IN",
accesorKey: "branchGstIn"
},
{
header: "BRANCH LEGAL NAME",
accesorKey: "branchLegalName"
},
{
header: "BRANCH CD",
accesorKey: "branchCd"
},
{
header: "BRANCH NAME",
accesorKey: "branchNm"
},
{
header: "BRANCH ADD3",
accesorKey: "branchAdd3"
},
{
header: "BRANCH CITY",
accesorKey: "branchCity"
},
{
header: "BRANCH TYPE",
accesorKey: "branchType"
},
{
header: "COMP CD",
accesorKey: "compCd"
},
{
header: "COMP NAME",
accesorKey: "compNm"
},
{
header: "select",
accesorKet: "select"
}
]
}