💡 for NON-node developers => CDN is mandatory
This commit is contained in:
parent
f1df43e547
commit
defaf72a0a
1 changed files with 16 additions and 1 deletions
17
README.md
17
README.md
|
|
@ -27,7 +27,7 @@ const csvData =[
|
|||
<CSVDownload data={csvData} target="_blank" />
|
||||
```
|
||||
|
||||
# Install :
|
||||
# Install
|
||||
|
||||
```
|
||||
npm install react-csv --save;
|
||||
|
|
@ -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 :
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue