Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to install react loader spinner

$ npm install react-loader-spinner --save
Comment

react-loader-spinner

import React from 'react';
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css";
import Loader from "react-loader-spinner";
import '../style.css';
const LoaderComponent = () => {
    return (
        <div className="loader">
            <Loader
                type="Circles"
                color="#dc1c2c"
                height={50}
                width={100}
                //timeout={1000} //3 secs
            />
        </div>
    );
};

export default LoaderComponent;

style.css
===
.loader {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: bg 1s;
}
Comment

install react spinner

npm install --save react-spinners
Comment

PREVIOUS NEXT
Code Example
Shell :: linux kill process 
Shell :: ffmpeg reduce video size 
Shell :: run mongodb on docker linux 
Shell :: start arangodb 
Shell :: brew check installed packages version 
Shell :: git add alias 
Shell :: cordova-ios latest version 
Shell :: how to create new branch 
Shell :: bcryptjs 
Shell :: pen() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied), client: 
Shell :: remove staged files 
Shell :: how do I push a repo that says allready exists 
Shell :: heroku delete branch 
Shell :: pull changes from different branch 
Shell :: what is git 
Shell :: git id 
Shell :: git delete stash 
Shell :: Bell char 
Shell :: add file in ignored folder git 
Shell :: pip freeze for only project requires 
Shell :: git reset specific file 
Shell :: how to check the list of all applications in ubuntu 
Shell :: gitignore folder 
Shell :: assigning permissions to folder and files in linux 
Shell :: intel pinning threads 
Shell :: how to get token of a raw github file 
Shell :: online shell script compiler 
Shell :: how to scp from remote machine to local machine 
Shell :: django upgrade 
Shell :: Comandos Útiles Docker 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =