react-year-picker

0.3.7 • Public • Published

React Year Picker

A simple Yearpicker component for React

Installation

The package can be installed via NPM:

npm install react-year-picker --save
import React from "react";
import YearPicker from "react-year-picker";
 
class Example extends React.Component {
  constructor(props) {
    super(props);
    this.handleChange = this.handleChange.bind(this);
  }
 
  handleChange(date) {
    console.log(date);
  }
 
  render() {
    return <YearPicker onChange={this.handleChange} />;
  }
}

Browser Support

The year picker is compatible with the latest versions of Chrome, Firefox, and IE11+.

Readme

Keywords

none

Package Sidebar

Install

npm i react-year-picker

Weekly Downloads

367

Version

0.3.7

License

none

Last publish

Collaborators

  • borisenkoandrei