react content loader 1

react content loader

npm i react-content-loader --save

Here is what the above code is Doing:
1. We’re importing the ContentLoader component from the react-content-loader package.
2. We’re creating a new component called MyLoader that returns a ContentLoader component.
3. We’re passing the ContentLoader component a few props:
a. speed: This is the speed at which the loader will animate.
b. width: This is the width of the loader.
c. height: This is the height of the loader.
d. primaryColor: This is the primary color of the loader.
e. secondaryColor: This is the secondary color of the loader.
f. uniquekey: This is a unique key for the loader.
4. We’re exporting the MyLoader component.

Similar Posts