thibaultboursier / use-timer

A timer hook for React
MIT License
198 stars 24 forks source link

feat: Replace isRunning with status #42

Closed ervinebalo closed 4 years ago

ervinebalo commented 4 years ago

To add 'PAUSED' state, 'isRunning' is replaced with a 'status' property.

'status' returns either 'RUNNING', 'PAUSED', or 'STOPPED'