antd table show hide columns code example
Example: antd table hide column
classNames: {
show: { display: 'block' },
hide: { display: 'none' }
}
getColumns = () => [
{
title: 'Client Name',
dataIndex: 'clientName',
className: your_check ? "show" : "hide"
}
];
render() {
return <Table columns={this.getColumns()}>
}