npm install react-countup --save import React from 'react' import CountUp from "react-countup"; export default function index() { return ( <div> <CountUp start={3} end={20.98} duration={2} /> </div> ) }
标签:npm,React,数字,效果,react,countup,import,变化 From: https://www.cnblogs.com/zjxzhj/p/17248310.html