react-vk-auth
v0.0.2
Published
react component for vk.com authorization
Downloads
92
Maintainers
Readme
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.