Skip to content

Commit

Permalink
馃挕 for NON-node developers => CDN is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
abdennour committed Feb 17, 2017
1 parent f1df43e commit defaf72
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const csvData =[
<CSVDownload data={csvData} target="_blank" />
```

# Install :
# Install

```
npm install react-csv --save;
Expand Down Expand Up @@ -158,6 +158,21 @@ import {CSVDownload} from 'react-csv';
<CSVDownload data={data} target="_blank" />
```

For non-node developers, they have to use CDN version :

```html
<script src="https://cdn.rawgit.com/abdennour/react-csv/7918cadc/cdn/react-csv-latest.js" type="text/javascript"></script>

<script type="text/babel">
const {CSVDownload, CSVLink} = ReactCSV;// or window.ReactCSV
const element= (<CSVDownload data={data} target="_blank" />);
ReactDOM.render(element, document.querySelector('#app'));
</script>

```

# Contribution :


Expand Down

0 comments on commit defaf72

Please sign in to comment.