react-loading-overlay
react-loading-overlay copied to clipboard
React 17.x.x?
I'm sure I could work around this, but npm is complaining about this module while I'm trying to upgrade my project to react 17.
I'm using npm i -S react-loading-overlay --legacy-peer-deps but npm i -S react-loading-overlay --force might work as well until React v17+ is supported unfortunately.
Is this dead?
seems so
Any alternatives for this?
@CodeLikeAGirl29 That's the same package as this repository, isn't it?
I've got some problems with the children elements with react 18. fixed doing:
import React from 'react';
import LoadingOverlay, { LoadingOverlayProps } from 'react-loading-overlay';
interface ILoading extends LoadingOverlayProps {
children?: React.ReactNode
}
const Loading: React.FC<ILoading> = (props) => (<LoadingOverlay {...props} />)
export default Loading;
and using this "Loading" component
here's one that's updated for react 17. it seems to be working for me in 18 (using legacy-peer-deps) though I've not tested for @VPPietro's issue https://www.npmjs.com/package/@ronchalant/react-loading-overlay https://github.com/ronchalant/react-loading-overlay
I think creating another npm package is not the way to go.