Skip to content

giggsy1106/Javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

import { DateRangePicker } from 'react-date-range';

class MyComponent extends Component { handleSelect(ranges){ console.log(ranges); // { // selection: { // startDate: [native Date Object], // endDate: [native Date Object], // } // } } render(){ const selectionRange = { startDate: new Date(), endDate: new Date(), key: 'selection', } return ( ) } const onChange = (item) => { if (item.selection.endDate !== item.selection.startDate) { console.log(item); setIsPopoverOpen(false); } setRange([item.selection]); }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published