react-use-count-down:简单而强大的React倒计时钩子

时间:2024-06-05 06:08:10
【文件属性】:

文件名称:react-use-count-down:简单而强大的React倒计时钩子

文件大小:395KB

文件格式:ZIP

更新时间:2024-06-05 06:08:10

JavaScript

死了简单但功能强大的React倒计时钩子。 由requestAnimationFrame 。 安装 使用npm: $ npm install --save react-countdown-hook 使用纱: $ yarn add react-countdown-hook 快速开始 import React from 'react' ; import useCountDown from 'react-countdown-hook' ; const initialTime = 60 * 1000 ; // initial time in milliseconds, defaults to 60000 const interval = 1000 ; // interval to change remaining time amount, defaults to 1000 const re


【文件预览】:
react-use-count-down-master
----src()
--------index.js(2KB)
----.babelrc(114B)
----cypress()
--------integration()
--------plugins()
--------support()
----.circleci()
--------config.yml(1KB)
----cypress.json(3B)
----demo()
--------index.html(199B)
--------index.js(1KB)
----LICENSE(1KB)
----assets()
--------cover.png(341KB)
----README.md(3KB)
----.gitignore(167B)
----package-lock.json(577KB)
----typings.d.ts(323B)
----package.json(1KB)

网友评论