
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-share-social
Advanced tools
UI component to share contents in Social media. Share contents in facebook, twitter, pinterest, whatsapp etc.
UI component to share contents in Social media.
Demo.
share UI support for:
Telegram
Line
Instapaper
Hatena
Live Journal
Ok
Mailru
npm install react-share-social --save
React-share-social component don't pollute the global scope.
import {ShareSocial} from 'react-share-social'
export default function RSSUsage() {
return <ShareSocial
url ="url_to_share.com"
socialTypes={['facebook','twitter','reddit','linkedin']}
/>
}
react-share-social component provides a a helpful callback everytime a social media icon is clicked
<ShareSocial
url ="url_to_share.com"
socialTypes= {['facebook','twitter']}
onSocialButtonClicked={ data => console.log(data)}
/>
url
: content to be shared
socialTypes
: array of button names in lower case
onSocialButtonClicked
: Callback function to receive a data everytime any social button is clicked
style
: Allow inline custom css of the root, title, and copyContainer
title
: title of the component
Example:
<ShareSocial
title={'sharing happiness'}
url ="url_to_share.com"
socialTypes= {['facebook','twitter']}
/>
react-share-social component provides a style property. These properties are always applied to the root element.
// We can use inline-style
const style = {
root: {
background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)',
borderRadius: 3,
border: 0,
boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)',
color: 'white',
},
copyContainer: {
border: '1px solid blue',
background: 'rgb(0,0,0,0.7)'
},
title: {
color: 'aquamarine',
fontStyle: 'italic'
}
};
<ShareSocial
url ="url_to_share.com"
socialTypes= {['facebook','twitter']}
style={style}
/>
MIT
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.