npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

reactjs-social-kit

v1.0.3

Published

Group of logins of the world's major social networks and their activities

Downloads

15

Readme

reactjs-social-kit

Easier login with social network platforms with reactjs-social-kit

img-description

NPM JavaScript Style Guide node version npm download npm bundle zip

Function

Currently this library has supported and prepared to support the following functions:

  1. Google
  2. Facebook
  3. Instagram (coming soon)
  4. Microsoft (coming soon)
  5. Linkedin (coming soon)
  6. Github (coming soon)
  7. Amazon (coming soon)
  8. Pinterest (coming soon)
  9. Twitter (coming soon)

Install

Use npm

npm install --save reactjs-social-kit

Use yarn

yarn add reactjs-social-kit

Usage

Login with Facebook

  • Create a app on Facebook Developer and get appId in here
import React, { useRef } from 'react'
import {
  ButtonLogin,
  FacebookIcon,
  FacebookLogin,
  TypeRef
} from 'reactjs-social-kit'

const App = () => {
  const facebookRef = useRef<TypeRef>(null!)

  return (
    <div style={{ width: 400, margin: '0 auto' }}>
      <FacebookLogin
        appId='xxxxxxxxxxxxxxx' // Facebook appId
        ref={facebookRef}
        onLoginSuccess={(res: any) => console.log(res)}
        onFailure={() => console.log('false')}
      >
        <ButtonLogin
          style={{ backgroundColor: '#1877F3' }}
          text='Login with Facebook'
          icon={<FacebookIcon style={{ margin: 5 }} />}
        />
      </FacebookLogin>
    </div>
  )
}

export default App

Props

| Property | Type | Default | Description | | :--------------- | :------- | :-------- | :----------------------------------------------- | | onLoginSuccess | function | undefined | Required function called on successful login. | | onFailure | function | undefined | Optional Function called when login failed. | | appId | string | undefined | Required appId. | | style | object | undefined | Optional style overrides for root element. | | className | string | undefined | Optional className override for root element. | | ... | ... | undefined | All other props are applied to the root element. |

Login with Google

  • Create a credential on Google Console and get clientId in here
import React, { useRef } from 'react'

import {
  ButtonLogin,
  GoogleIcon,
  GoogleLogin,
  GoogleSuccessData,
  TypeRef
} from 'reactjs-social-kit'

const App = () => {
  const googleRef = useRef<TypeRef>(null!)

  return (
    <div style={{ width: 400, margin: '0 auto' }}>
      <GoogleLogin
        clientId='xxxxxxxxxxxxxxxxxxxx' // Google client id
        ref={googleRef}
        onLoginSuccess={(res: GoogleSuccessData) => console.log(res)}
        onFailure={() => console.log('false')}
      >
        <ButtonLogin
          style={{ backgroundColor: '#fff', color: '#888' }}
          text='Login with Google'
          icon={<GoogleIcon style={{ margin: 5 }} />}
        />
      </GoogleLogin>
    </div>
  )
}

export default App

Props

| Property | Type | Default | Description | | :--------------- | :------- | :-------- | :----------------------------------------------- | | onLoginSuccess | function | undefined | Required function called on successful login. | | onFailure | function | undefined | Optional Function called when login failed. | | appId | string | undefined | Required appId. | | style | object | undefined | Optional style overrides for root element. | | className | string | undefined | Optional className override for root element. | | ... | ... | undefined | All other props are applied to the root element. |

License

I'm very happy to receive suggestions and contributions from everyone <3

MIT © dodinhthang(Thang Do)