react-linkedin-share-link
v1.0.2
Published
Create "share this on Linkedin" links in React.
Downloads
397
Readme
react-linkedin-link
Create "share this on Linkedin" links in React.
Installation
With npm:
npm install --save react-linkedin-share-link
Or with Yarn:
yarn add react-linkedin-share-link
Usage
import ShareLink from 'react-linkedin-share-link'
...
<ShareLink link='https://your-site.com/some-page'>
{link => (
<a href={link} target='_blank'>Share this on Linkedin</a>
)}
</ShareLink>
If you don't pass in a link
prop, it will use the current page (window.location.href
).