I upgraded my react version & its types (react & react-dom) to v18.
After the upgrade I cannot use any of the loadable components inside JSX tags.
Here is the full error:
'XXXComponent' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<XXXComponentProps & ExtraComponentProps, any, any> | null' is not a valid JSX element.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🐛 Bug Report
I upgraded my react version & its types (react & react-dom) to v18. After the upgrade I cannot use any of the loadable components inside JSX tags. Here is the full error:
My code
Expected behavior
Should be able to use loadable components without any issue