
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
react-social-sharing
Advanced tools
React Implementation of @mxstbr sharingbuttons.io No Extra Javascript Imports. No Tracking. Just Links, SVG and CSS
yarn add react-social-sharing
import React from 'react'
import { Twitter } from 'react-social-sharing'
export default () => <Twitter link="https://github.com" />
To any button for localization of the aria-label
you can pass a function like so:
<Twitter
link="https://github.com"
label={serviceName => localise('share_label', { serviceName })}
/>
This function receives the name of the service and the return value is the aria-label
and title
used in the anchor.
This name is automatically filled by the package but you can override this with the name prop.
react-social-sharing is available under MIT. See LICENSE for more details.
FAQs
Did you know?
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.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.