In react, animated spinners are often used to make web-pages more attractive. The steps are:
npm install react-bootstrap bootstrap
import { Spinner } from 'react-bootstrap';
<Spinner>
tag for the spinner – you can apply CSS styles to it.Remember to use the latest version of react and react-bootstrap.
import React from 'react'; require('./style.css'); import ReactDOM from 'react-dom'; import App from './app.js'; ReactDOM.render( <App />, document.getElementById('root') );