feat(useCountdown): add useCountdown hook#233
feat(useCountdown): add useCountdown hook#233JeongHwan-dev wants to merge 1 commit intotoss:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #233 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 33 34 +1
Lines 839 884 +45
Branches 254 265 +11
=========================================
+ Hits 839 884 +45 🚀 New features to boost your workflow:
|
|
How about changing it to a more intuitive name? (e.g., |
|
@JeongHwan-dev Thank you for the excellent implementation — the code quality is impressive (252 lines of tests, clean TypeScript, great use of existing hooks). Before merging, we'd like to discuss one scope question:
If we include We'd like to align with @zztnrudzz13 on this before proceeding. Will follow up soon! |
|
@JeongHwan-dev Following up — after team discussion, we've decided that composed hooks like react-simplikit focuses on providing primitive building blocks only.
Users can compose these primitives to build their own countdown logic. Thank you for the great implementation! |
Overview
Add
useCountdownhook:useCountdownis a React hook that manages a countdown timer with precise control. It provides functions to start, pause, resume, and reset the countdown. The hook tracks the current count value and supports both incrementing and decrementing modes.Checklist
yarn run fixto format and lint the code and docs?yarn run test:coverageto make sure there is no uncovered line?