🌎 🌍 🌏 initial commit
This commit is contained in:
commit
41d2cd8b9c
12 changed files with 181 additions and 0 deletions
23
src/components/CSVLink.js
Normal file
23
src/components/CSVLink.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import React from 'react';
|
||||
import {buildURI} from '../core';
|
||||
import {defaultProps, PropTypes, PropsNotForwarded} from '../metaProps';
|
||||
|
||||
class CSVLink extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
|
||||
render(){
|
||||
return (
|
||||
<a {...this.props} href={buildURI(this.props.data, this.props)}>
|
||||
{this.props.children}
|
||||
</a>
|
||||
)
|
||||
}
|
||||
}
|
||||
CSVLink.defaultProps = defaultProps;
|
||||
CSVLink.PropTypes = PropTypes;
|
||||
CSVLink.PropsNotForwarded = PropsNotForwarded;
|
||||
|
||||
export default CSVLink;
|
||||
Loading…
Add table
Add a link
Reference in a new issue