Skip to content

Instantly share code, notes, and snippets.

@alexismansilla
Created September 22, 2021 03:38
Show Gist options
  • Save alexismansilla/d4b3cb2debdf0ba9312cd3730838c709 to your computer and use it in GitHub Desktop.
Save alexismansilla/d4b3cb2debdf0ba9312cd3730838c709 to your computer and use it in GitHub Desktop.
<Table dataSource={data}>
<ColumnGroup title="Name">
<Column title="First Name" dataIndex="firstName" key="firstName" />
<Column title="Last Name" dataIndex="lastName" key="lastName" />
</ColumnGroup>
<Column title="Age" dataIndex="age" key="age" />
<Column title="Address" dataIndex="address" key="address" />
<Column
title="Tags"
dataIndex="tags"
key="tags"
render={tags => (
<>
{tags.map(tag => (
<Tag color="blue" key={tag}>
{tag}
</Tag>
))}
</>
)}
/>
<Column
title="Action"
key="action"
render={(text, record) => (
<Space size="middle">
<a>Invite {record.lastName}</a>
<a>Delete</a>
</Space>
)}
/>
</Table>,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment