Don't override Date in the example
omasback opened this issue · comments
Owen Masback commented
This tripped me up for a second. I was trying to use js native Date
in my code but it had been reassigned to the component class because i copied the example code. Maybe assign the import to DropdownDate
or something else
Satyendra Singh commented
It's a default export, so you can have your own name to it
eg:
import SomeDate from 'react-dropdown-date';
import DropdownDate from 'react-dropdown-date';
Fixed it in ReadMe though.
Thanks