From 4bbe886b3bcd1023e28f96b9046115aeab9171a1 Mon Sep 17 00:00:00 2001 From: Afzal Ahmad Date: Sun, 15 Oct 2017 22:32:25 +0200 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d5bead8..07ec07d7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ # React-Data-Export -============ A data export library built with and for [React](http://facebook.github.io/react/index.html). @@ -52,3 +51,25 @@ class App extends React.Component { } } ``` + +![Example](https://i.imgur.com/6fwdJeo.png) + +## Dependencis +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. + + +```javascript +///webpack.config.js +vendor: [ + ..... + 'xlsx', + 'file-saver' +], +..... +node: {fs: 'empty'}, +externals: [ + {'./cptable': 'var cptable'}, + {'./jszip': 'jszip'} + ] +``` +