react-loader spinner code example
Example 1: react-spinners
import { ClipLoader, BarLoader, BeatLoader, BounceLoader, CircleLoader, ClimbingBoxLoader } from "react-spinners";
function App() {
return (
<div style={{ alignItems: "center", display: "flex" }}>
<CircleLoader />
<ClimbingBoxLoader />
<BounceLoader />
<BeatLoader />
<BarLoader />
<ClipLoader />
</div>
);
}
export default App;
Example 2: how to install react loader spinner
$ npm install react-loader-spinner --save