Package Exports
- react-table
- react-table/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-table) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Table
A simple sortable table component for react.
Usage
npm i react-table
(non cjs users can point a <script
> tag to the built files in dist
)
var React = require('react');
var ReactTable = require('react-table');
var data = [
{favoriteColor:'blue', age: 30, name: "Athos", job: "Musketeer"},
{favoriteColor: 'red' , age: 33, name: "Porthos", job: "Musketeer"},
{favoriteColor: 'blue' , age: 27, name: "Aramis", job: "Musketeer"},
{favoriteColor: 'orange' , age: 25, name: "d'Artagnan", job: "Guard"}
];
React.render(<ReactTable data={data} />, document.body);
See examples for a more full featured use case.
Development
# watch js files and start example server
npm start
# run jest tests
npm test
# build for production
npm run build