Implement react-share feature
Closed this issue · 2 comments
Developerayo commented
Implement react-share feature Twitter & Facebook
npm install react-share --save
API
Share buttons
import {
FacebookShareButton,
GooglePlusShareButton,
LinkedinShareButton,
TwitterShareButton,
TelegramShareButton,
WhatsappShareButton,
PinterestShareButton,
VKShareButton,
OKShareButton,
RedditShareButton,
TumblrShareButton,
LivejournalShareButton,
MailruShareButton,
ViberShareButton,
WorkplaceShareButton,
LineShareButton,
EmailShareButton,
} from 'react-share';
Developerayo commented
switching to react-share-icons
import React, {Component} from 'react';
import Icon, {Telegram} from 'react-share-icons';
import Instagram from 'react-share-icons/lib/Instagram';
class Shares extends Component {
render() {
return (
<div>
<div>
<Icon type="Facebook" className="shares-facebook"/>
<Icon type="Twitter" className="shares-twitter"/>
<Instagram className="shares-instagram"/>
</div>
<a href="https://telegram.org/">
<Telegram className="shares-telegram"/>
</a>
</div>
);
}
}
export default Shares;
Developerayo commented
Done.