react-date-range icon indicating copy to clipboard operation
react-date-range copied to clipboard

React v18 Support

Open joshmedeski opened this issue 2 years ago • 1 comments

Can this package be updated to be compatible with React v18?

I get the following error when trying to use this package in a NextJS v13 app (which uses react@^18.2.0):

'DateRangePicker' cannot be used as a JSX component. Its instance type 'DateRangePicker' is not a valid JSX element. The types returned by 'render()' a typescript (2786) [184, 16]

I'm familiar with overwriting @types/react or setting resolutions in the package but it would be best if this package could be upgraded and tested with React v18, thanks.

joshmedeski avatar Mar 27 '23 17:03 joshmedeski

I have created a new package to make it work with React 18 and latest date-fns

https://www.npmjs.com/package/@umakantp/react-date-range

umakantp avatar Dec 29 '23 04:12 umakantp