node package manager

reactexportbutton

"# reactExportButton"

var React= require('react'); var ReactDOM= require('react-dom'); var ReportButton = require('reactexportbutton/index');

var columns = [ {title: "ID", dataKey: "id"}, {title: "Name", dataKey: "name"}, {title: "Country", dataKey: "country"} ];

var rows = [ {"id": 1, "name": "Shaw", "country": "Tanzania"}, {"id": 2, "name": "Nelson", "country": "Kazakhstan"}, {"id": 3, "name": "Garcia", "country": "Madagascar"} ];

var App = React.createClass({

render: function() {
	return (
		<div>
		  <ReportButton modalHeader="Report Modal" 
		                butonName="Report" 
		                closeButton="Close" 
		                reportButton="Export" 
		                columns={columns} rows={rows}/>
		</div>
	);
}

});

ReactDOM.render(, document.getElementById('app'));