install react spinner 1

install react spinner

$ npm install react-loader-spinner --save

Here is what the above code is Doing:
1. Importing the Loader component from the react-loader-spinner library.
2. Creating a Loader component.
3. Passing the type and color props to the Loader component.
4. Passing the Loader component to the return statement.

Similar Posts