inctable-react-bootstrap-table-next
v3.1.3
Published
Next generation of react-bootstrap-table minus CVE-2021-23358
Downloads
200
Maintainers
Readme
react-bootstrap-table-next
Next generation of react-bootstrap-table
Michael Rodov: Removed CVE-2021-23358 by upgrading underscore package
Usage
Installation
npm install inctable-react-bootstrap-table-next --save
Include CSS
inctable-react-bootstrap-table2 need you to add bootstrap css in your application firstly. About bootstrap css, we only compatible with bootstrap 3 but will start to compatible for bootstrap 4 on v0.2.0
// es5
require('inctable-react-bootstrap-table-next/dist/react-bootstrap-table2.min.css');
// es6
import 'inctable-react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';
Your First Table
import BootstrapTable from 'inctable-react-bootstrap-table-next';
const products = [ ... ];
const columns = [{
dataField: 'id',
text: 'Product ID'
}, {
dataField: 'name',
text: 'Product Name'
}, {
dataField: 'price',
text: 'Product Price'
}];
export default () =>
<BootstrapTable keyField='id' data={ products } columns={ columns } />