New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-linkedin-share-link

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-linkedin-share-link

Create "share this on Linkedin" links in React.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

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

Keywords

react

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts