You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use react-bootstrap-table in your react app, you should import this component as first. About importing this component, there'r two way in the following you can choose:
61
-
##### Module(CommonJS/AMD)
60
+
To use react-bootstrap-table in your react app, you should import it first.
61
+
You can do this in two ways:
62
+
63
+
##### With a module bundler
64
+
With a module bundler like [webpack](https://webpack.github.io/) that supports either CommonJS or ES2015 modules, use as you would anything else.
65
+
You can include source maps on your build system to debug on development. Don't forget to Uglify on production.
66
+
62
67
```js
63
-
import {BootstrapTable, TableHeaderColumn} from'react-bootstrap-table'; // in ECMAScript 6
var ReactBSTable =require("react-bootstrap-table");
71
+
var ReactBSTable =require('react-bootstrap-table');
66
72
var BootstrapTable =ReactBSTable.BootstrapTable;
67
73
var TableHeaderColumn =ReactBSTable.TableHeaderColumn;
68
74
```
69
75
##### Browser global(window object)
76
+
In the `dist` folder you have a UMD bundle with source maps (`react-bootstrap-table.js`) as well as a minified version (`react-bootstrap-table.min.js`).
0 commit comments