Skip to content

tryuzr/react-synctimer

 
 

Repository files navigation

react-synctimer

"react-synctimer" is an advanced and efficient timer management tool for React applications that provides hooks for managing timers, including support for repeating and non-repeating timers. This module is designed to handle timers in a consistent way across React and even non-React projects, allowing for easy starting, pausing, resuming, and clearing of timers.

Features

  • useTimer hook: Set up a timer with the ability to pause, resume, and clean up after the timer.
  • useTimerEx hook: Extended version of the useTimer hook that allows passing additional arguments to the callback function.
  • Support for repeating timers: Configure timers to repeat at specified intervals.
  • Timer cleanup: Ensure timers are properly cleaned up when components unmount or when conditions change.
  • And a whole bunch of other advanced things...

Installation

You can install react-synctimer via npm or yarn:

NPM:

npm install react-synctimer

Yarn:

yarn add react-synctimer

Contributing

If you'd like to contribute to the project or support its development, please visit the link below:

Contribute or Support

We welcome contributions in the form of bug reports, feature requests, or pull requests. Thank you for your support!

About

Advanced timer management for React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 52.6%
  • TypeScript 47.4%