you can use antd :framworkframework for reactjs
soyouso you build columns in an easy way like this
const columns = [{
title: 'First Name',
dataIndex: 'first_name',
sortDirections: ['descend', 'ascend'],
key: 'first_name',
width: '20%',}]
and you can just :
return (
<Table className="yourClassCss" columns={columns} dataSource={this.state.data} />
);