🌎 🌍 🌏 initial commit

This commit is contained in:
abdennour 2016-11-25 15:59:50 +03:00
commit 41d2cd8b9c
12 changed files with 181 additions and 0 deletions

23
src/components/CSVLink.js Normal file
View 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;