1.0.2 • Published 7 years ago

react-linkedin-share-link v1.0.2

Weekly downloads
62
License
MIT
Repository
github
Last release
7 years ago

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).