Hi,
I'm just trying to use react-dates and it seems the calendar doesn't show up whereas the console.log is displayed.
When I click on StartDate, I only have a console.log, not the calendar. I cannot choose a date.
Someone knows why?
Thanks



Hi @Steffi3rd, calendar visibility is controlled by the focusedInput prop. When it is null, the calendar is always hidden, as it is in your case. This is why we recommend using a state variable to control the focusedInput value and then updating that state variable with the onFocusChange prop. You can see an example of a functional wrapper around the DateRangePicker in https://github.com/airbnb/react-dates/blob/master/examples/DateRangePickerWrapper.jsx.
Most helpful comment
Hi @Steffi3rd, calendar visibility is controlled by the
focusedInputprop. When it isnull, the calendar is always hidden, as it is in your case. This is why we recommend using astatevariable to control thefocusedInputvalue and then updating that state variable with theonFocusChangeprop. You can see an example of a functional wrapper around theDateRangePickerin https://github.com/airbnb/react-dates/blob/master/examples/DateRangePickerWrapper.jsx.