Installation
React skeleton loader.
Peer dependencies
React skeleton requires the following peer dependencies to work. Make sure to have them installed in your project.
You can skip this step if those packages are already installed in your application.
$ npm install react react-dom --save
Package
Install the latest version of React skeleton by running the following command in your project's root directory:
$ npm install @nejcm/react-skeleton-loader --save
Usage
import { Skeleton, Card, Comment } from '@nejcm/react-skeleton-loader';
const YourComponent = () => {
return <Skeleton width={40} height={40} style={{ border: '1px solid' }} />;
};
export default YourComponent;