Error occured after upgrading packes with React v 18
"react": "18.1.0", "fslightbox-react": "1.6.2", Error: TS2786: 'FsLightbox' cannot be used as a JSX component. Its instance type 'FsLightbox' is not a valid JSX element. The types returned by 'render()' are incompatible between these types. Type 'import(".../node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'. Type '{}' is not assignable to type 'ReactNode'.
Error occured after upgrading packes with React v 18
"react": "18.1.0", "fslightbox-react": "1.6.2",
Error:TS2786: 'FsLightbox' cannot be used as a JSX component. Its instance type 'FsLightbox' is not a valid JSX element. The types returned by 'render()' are incompatible between these types. Type 'import(".../node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode' is not assignable to type 'React.ReactNode'. Type '{}' is not assignable to type 'ReactNode'.
Issus related: https://github.com/microsoft/DefinitelyTyped-tools/issues/433