Skip to content

Instantly share code, notes, and snippets.

@ndudar
Created February 15, 2023 22:04
Show Gist options
  • Save ndudar/65426702973852603add7c1039b2136d to your computer and use it in GitHub Desktop.
Save ndudar/65426702973852603add7c1039b2136d to your computer and use it in GitHub Desktop.
Using Timer
//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