Skip to content

A generic loader which looks like Facebook skeleton loading. plugin uses nothing but pure css and some react jsx.

Notifications You must be signed in to change notification settings

charitha95/react-skeleton-preload

Repository files navigation

GitHub release (latest by date) GitHub code size in bytes Travis (.org)

React skeleton preloader.

Demo

Live on: https://react-skeleton-loading.netlify.app/

How to use

Installation

npm i @charie/react-skeleton-preload

How to use

import React, { useEffect, useState } from "react";
import Skeleton from "@charie/react-skeleton-preload";

function App() {

  const [title, setTitle] = useState('');

  useEffect(() => {
    setTimeout(() => { setTitle('hello world') }, 3000)
  }, []);

  return <h2 style={{ width: 150 }}>{title || <Skeleton />}</h2>
  
}

export default App;

About

A generic loader which looks like Facebook skeleton loading. plugin uses nothing but pure css and some react jsx.

Resources

Stars

Watchers

Forks

Packages

No packages published