Skip to content

Commit 4bbe886

Browse files
Update README.md
1 parent d2e1ffe commit 4bbe886

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# React-Data-Export
2-
============
32

43
A data export library built with and for [React](http://facebook.github.io/react/index.html).
54

@@ -52,3 +51,25 @@ class App extends React.Component {
5251
}
5352
}
5453
```
54+
55+
![Example](https://i.imgur.com/6fwdJeo.png)
56+
57+
## Dependencis
58+
This package uses [file-saver](https://www.npmjs.com/package/file-saver) and [xlsx](https://www.npmjs.com/package/xlsx) and using [json-loader](https://www.npmjs.com/package/json-loader) will do the magic for you.
59+
60+
61+
```javascript
62+
///webpack.config.js
63+
vendor: [
64+
.....
65+
'xlsx',
66+
'file-saver'
67+
],
68+
.....
69+
node: {fs: 'empty'},
70+
externals: [
71+
{'./cptable': 'var cptable'},
72+
{'./jszip': 'jszip'}
73+
]
74+
```
75+

0 commit comments

Comments
 (0)