Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
react-social-kr
Advanced tools
React social buttons and counts for Facebook, Pinterest, Google, Naver, KaKao etc ...
Simple React components for social (Facebook, Google, VKontakte, Pinterest ...) buttons and counts. Plus, Korean SNS supports (Naver Blog, KaKao Talk, KaKao Story ...)
Original Source from react-social. Thanks to Ola Holmström and all contributors.
npm install react-social-kr --save
import { FacebookButton, FacebookCount } from "react-social-kr";
@connect(
(state, ownProps) => ({
pathname: ownProps.location.pathname
}), {})
class App extends Component {
render {
const { pathname } = this.props;
return (
<FacebookButton pathname={pathname} appId={appId}>
<FacebookCount pathname={pathname} />
{" Share " + pathname}
</FacebookButton>
);
}
}
WARNING: GooglePlusCount
, TwitterCount
and PocketCount
uses the
donreach API which has a limit
of 1000 request per day, if you have an alternative please do not hesitate
to make a PR
Change the element the component renders into, default is span
.
The pathname you want to get the count of, default is window.location
.
Optional access token.
Callback for when the count is updated. Callback takes one argument count
.
Return the social count.
Change the element the component renders into, default is button
.
The pathname you want to share, default is window.location
.
The target you want to open, default is _blank
.
Pass options to window.open
.
A message that's prepended before the url.
Title of your shared content.
Url of an image.
Facebook app id.
Facebook has 2 different share dialogs. By default we're showing Feed
Dialog which has more options, but supports only sharing to user's
feed. You can set sharer
option to true
and we'll show Share Dialog
where user can choose between their feed and also pages they have
access to.
KaKaoTalk JavaScript api key.
There are no styles included, the components pass all their props down
to their element like className
and style
so you can easily style
them yourself.
GooglePlusCount
, TwitterCount
and PocketCount
uses the donreach API which has a limit of 1000 requests per day.MIT Licensed
1.1.9 (2018-06-29)
FAQs
React social buttons and counts for Facebook, Pinterest, Google, Naver, KaKao etc ...
We found that react-social-kr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.