This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

react-digits

1.0.3 • Public • Published

react-digits

React component for Twitter's Digits

Usage

import React, { Component } from 'react'
import Digits from 'react-digits';

export default class Login extends Component {
  get consumerKey() {
    return 'ENTER YOUR DIGITS CONSUMER KEY HERE'
  }
  
  handleLogin(resp) {
    console.info(resp)
  }

  render() {
    return (
      <Digits
        consumerKey={ this.consumerKey }
        onLogin={ this.handleLogin.bind(this) } />
    )
  }
}

Package Sidebar

Install

npm i react-digits

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • cgarvis