1.0.3 • Published 9 years ago

react-digits v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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