react-simple-table
For when you just want a table and not sorting, filtering, pagination, infinite scroll, ajax loading, etc. etc. etc.
Install
npm install react-simple-table
Usage
react-simple-table
takes two props data
and columns
.
var SimpleTable = ;var React = ; var fruitColors = apple: 'Green' peach: 'Yellow' cherry: 'Red'; React; // For deeper data structures, you can specify the "path" to your values// using dot-notation strings. var deeperFruitColors = apple: color: 'Green' peach: color: 'Yellow' cherry: 'Red' ; React; // You can also pass in a function and do whatever you'd like.React;
Styling
Tables by default have a react-simple-table
class added. You can pass
in custom class names as a string using the className
prop.