'Datetime' cannot be used as a JSX component. Its instance type 'ReactDatetimeClass' is not a valid JSX element.
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
### I'm Submitting a ...
```
[x] Bug report
[ ] Feature request
[x] Support request
```
### Steps to Reproduce
During Yarn build we are getting the below error.
'Datetime' cannot be used as a JSX component.
Its instance type 'ReactDatetimeClass' is not a valid JSX element.
We are using react-datetime inside the functional component.
We are trying to use
react-datetime version = v3.1.1
yarn version = v1.22.5
node version = v14.15.0
### Expected Results
Successful yarn build for react-datetime
### Actual Results
'Datetime' cannot be used as a JSX component.
Its instance type 'ReactDatetimeClass' is not a valid JSX element.
### Minimal Reproduction of the Problem
### Other Information (e.g. stacktraces, related issues, suggestions how to fix)
Contributor guide
Assessment
This issue has not been assessed yet.