Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 899 Bytes

File metadata and controls

46 lines (41 loc) · 899 Bytes

react-datepicker-mobile

a simple datePicker component https://hardtogit.github.io/react-datepicker/example/build/index.html

get start

step one

clone or down this project

the second step

cd example

the third step

npm install

finally

npm start

how to use

Example with defaults

install

npm intsall --save react-datepicker-mobile

Creating an example component:

import React,{Component} from 'react';
import DatePicker from 'react-datepicker-mobile';
class Index extents Component{
  componentDidMount(){
  this.refs.datePicker.toggle();
  }
  render: function() {
    return (
      <DatePicker ref="datePicker"> </DatePicker>  
    );
  },
};
export default Index;