Counter
Installation
npm i react-countup
Script
export { default } from './CountUp';
export type { CountUpProps } from './CountUp';
export { default as useCountUp } from './useCountUp';
- Write below example code in your component to use apexchart
Example
'const CountUp = dynamic(() => import("react-countup"), { ssr: false });';
const CounterUp = () => {
return (
<div>
<CountUp start={0.563} end={2.648} duration={3} decimals={3}/>
</div>
)
}