Skip to content

react-cmpt/rc-skeleton

Repository files navigation

rc-skeleton

Provide a placeholder while you wait for content to load, or to visualise content that doesn't exist yet.

Build Status

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>
  );
};