Skip to content

caffeinum/react-vk-login-button

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>
        )}
      />
    )
  }

}

About

React VK Login button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%