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 (not an npm user? see instructions below)
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.
Usage without NPM
Include the built files in dist with a <script> tag or the module loader of your choice. React-table expects that React is on the window and will not work without it.
Development
# watch js files and start example server
npm start
# run jest tests
npm test
# build for production
npm run build