react-vk-login-button

    1.1.0 • Public • Published

    React VK Login Button

    The code was adapted from https://github.com/appigram/react-vk-login.

    It's updated for the last React version.

    Also, see this: https://github.com/mmarkelov/react-vk

    Use

    npm i react-vk-login-button
    import React from 'react'
    import VKLogin from 'react-vk-login-button'
     
    export default class LoginWithVK extends React.Component {
     
      callbackVK = ({ code, redirectUri }) => {
        // Login with vk
      }
     
      render () {
        return (
          <VKLogin
            clientId='xxx'
            callback={this.callbackVK}
            render={renderProps => (
              <button onClick={renderProps.onClick}>
                Login with VK
              </button>
            )}
          />
        )
      }
     
    }
     

    Install

    npm i react-vk-login-button

    DownloadsWeekly Downloads

    95

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    9.74 kB

    Total Files

    10

    Last publish

    Collaborators

    • caffeinum