next-date
v1.0.5
Published
Get next and previous day, or choose a day from a list
Downloads
4
Maintainers
Readme
next-date
Demo Page
You can find a demo Here
Install
npm install --save next-date
Usage
import React, { Component } from 'react'
import NextDate from 'next-date'
export default class App extends Component {
state = {
date: new Date()
}
handleChange = date => {
console.log(date)
}
render() {
return (
<div>
<NextDate
value={this.state.date}
onChange={this.handleChange}
days={5}
/>
</div>
)
}
}