react-vk-auth

0.0.2 • Public • Published

react-vk-auth

A Component React for vk.com authentication

Getting Started

yarn add react-vk-auth or npm i react-vk-auth

Basic example

import React, { Component } from 'react';
import VkAuth from 'react-vk-auth';
 
class Registration extends Component {
 
  handleVkResponse = (data) => {
    console.warn(data)
  }
  
  render() {
    return(
      <VkAuth apiId="#######" callback={this.handleVkResponse} />
    )
  }
}
 

param apiId is required, appId is your vk.com dev token.

Package Sidebar

Install

npm i react-vk-auth

Weekly Downloads

22

Version

0.0.2

License

MIT

Unpacked Size

51.8 kB

Total Files

6

Last publish

Collaborators

  • canmeepo