rc-skeleton
Provide a placeholder while you wait for content to load, or to visualise content that doesn't exist yet.
usage
yarn add @react-cmpt/rc-skeleton
import Skelenton from "@react-cmpt/rc-skeleton";
const Demo = () => {
return (
<Skelenton loading={loading} emptyData={data == null}>
<div>content</div>
</Skelenton>
);
};