Skip to content

Instantly share code, notes, and snippets.

@iainnash
Created February 23, 2018 16:19
Show Gist options
  • Save iainnash/95f0647e92722d25d210a67cdad07eee to your computer and use it in GitHub Desktop.
Save iainnash/95f0647e92722d25d210a67cdad07eee to your computer and use it in GitHub Desktop.
Table Config Example
const UserTable = [{
Header: 'Name',
columns: [{
Header: 'First Name',
accessor: 'firstName'
}, {
Header: 'Last Name',
id: 'lastName',
accessor: d => d.lastName
}]
}, {
Header: 'Info',
columns: [{
Header: 'Age',
accessor: 'age'
}]
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment