Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Latest commit

 

History

History
13 lines (12 loc) · 365 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 365 Bytes

wh-react-table

React component for a filterable and sortable table.

<Table
  fields={[
    ['ID', i => i.id],
    ['Title', i => i.title]
  ]}
  data={this.state.data}
  filter={(item, value) => ReactDOMServer.renderToStaticMarkup(<Row item={item} />).toUpperCase().indexOf(value.toUpperCase()) > -1}
>
  <Row />
</Table>