✈️ migrate to babel STAGE-3

This commit is contained in:
abdennour 2017-02-17 17:23:00 +03:00
commit 298ca64675
15 changed files with 4543 additions and 13 deletions

26
sample-site/src/app.jsx Normal file
View file

@ -0,0 +1,26 @@
import React from 'react';
import {CSVLink, CSVDownload} from 'react-csv';
const csvData =[
['firstname', 'lastname', 'email'] ,
['Ahmed', 'Tomi' , 'ah@smthing.co.com'] ,
['Raed', 'Labes' , 'rl@smthing.co.com'] ,
['Yezzi','Min l3b', 'ymin@cocococo.com']
];
class App extends React.Component {
render() {
return (
<div style={{padding: 10}}>
<h1>react-csv</h1>
<div>
Download CSV <CSVLink data={csvData}> here </CSVLink>.
</div>
</div>
);
}
}
export default App;

5
sample-site/src/boot.jsx Normal file
View file

@ -0,0 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
ReactDOM.render(<App />, document.getElementById('app'));