文件名称:react-count-down:倒数React成分
文件大小:123KB
文件格式:ZIP
更新时间:2024-06-03 07:04:02
JavaScript
React倒计时 react-count-down是使用react的简单倒数组件。 安装 yarn add react-count-down 用法 import Countdown from 'react-count-down' import ReactDOM from 'react-dom' import React , { Component , PropTypes } from 'react' const cb = ( ) => { console . log ( 'expired callback' ) } const OPTIONS = { endDate : '03/01/2020 10:55 AM' , prefix : 'until my birthday!' , cb } const TestComponent = ( ) => ( < div>
【文件预览】:
react-count-down-master
----.gitignore(37B)
----.babelrc(108B)
----package.json(1KB)
----src()
--------DateBetween.js(833B)
--------__tests__()
--------Countdown.js(1KB)
----README.md(945B)
----example()
--------webpack.config.js(533B)
--------index.js(425B)
--------index.html(178B)
----lib()
--------DateBetween.js(919B)
--------__tests__()
--------Countdown.js(5KB)
----yarn.lock(297KB)