You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initial commit for npm pkg migration with legacy countdown support
* Update version number for minor release
* Small refactorings and test updates
* Fix test
* Some more refactorings
* Update keywords
* Update examples
* Fix examples build
In case you want to change the output of the component, or want to signal that the countdown's work is done, you can do this by either using the [`onComplete`](#oncomplete) callback, a
@@ -52,7 +52,7 @@ custom [`renderer`](#renderer), or by specifying a React child within `<Countdow
52
52
```js
53
53
importReactfrom'react';
54
54
importReactDOMfrom'react-dom';
55
-
importCountdownfrom'react-countdown-now';
55
+
importCountdownfrom'react-countdown';
56
56
57
57
// Random component
58
58
constCompletionist= () =><span>You are good to go!</span>;
Here is an example with a countdown of 10 seconds that displays the total time difference in milliseconds. In order to display the milliseconds appropriately, the [`intervalDelay`](#intervaldelay) value needs to be lower than `1000`ms and a [`precision`](#precision) of `1` to `3` should be used. Last but not least, a simple [`renderer`](#renderer) callback needs to be set up.
0 commit comments