v2.0.0
-
Change hooks state implementation, move from separate individual states [
seconds
,minutes
,hours
,days
] to singleseconds
state and calculate rest of time attributes based on seconds only, this will enhance performance and make sure that only 1 render is done every second -
Fix update
format
props inuseTime
-
Code enhancement: move all validation functions to
Validate
util -
Code enhancement: Create
Time
util to handle seconds to time conversion and time formatting -
Code enhancement: add linter and fix all lint errors