Awesome
deku-share
Social media share link components for deku
Install
$ npm install --save deku-share
Usage
import {Facebook, Twitter} from 'deku-share';
export function render() {
return (
<div>
<Facebook u="http://google.com">
Share on Facebook
</Facebook>
<Twitter url="http://google.com" hashtags={['foo', 'bar']}>
Share on Twitter
</Twitter>
</div>
);
}
Components
All components has class
, target
and id
as attributes.
Specific attributes can be found here:
License
MIT © Andreas Gillström