React SVG Spinner for update actions
npm install react-spinner-timerThe React Spinner Timer for React.
Circular countdown timer with progressive animation.
To install React Spinner Timer you can run:
``
yarn add react-spinner-timer
or
npm install react-spinner-timer
`
To use:
`js
import React from "react";
import ReactSpinnerTimer from "react-spinner-timer";
function App() {
const handleChange = (lap) => {
if (lap.isFinish)
console.log("Finished!!");
else
console.log("Running!! Lap:", lap.actualLap);
};
return (
totalLaps={60}
isRefresh={false}
onLapInteraction={handleChange}
isPause={false}
/>
);
}
export default App;
``
See another example at Code Sandbox
---
Thanks for downloading, use wisely!