Created
February 15, 2023 22:04
-
-
Save ndudar/65426702973852603add7c1039b2136d to your computer and use it in GitHub Desktop.
Using Timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//here's an example of how to use the Timer component: | |
import Timer from "./Timer"; | |
const App = () => { | |
return ( | |
<> | |
//this timer will count down from 3 minutes using the custom useTimer Hook | |
<Timer targetTimeMins={3}/> | |
</> | |
) | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment