JavaScript community news log

×

Daily JavaScript community news and chat

A RubyFlow-inspired community news site for JavaScript and related technologies.

Anyone can post news to be seen by the community (and maybe selected for JavaScript Weekly!)

Safe timers HOCs for React

https://github.com/deepsweet/hocs/tree/master/packages/safe-timers

Provides safe versions of setTimeout, setInterval, requestAnimationFrame and requestIdleCallback which will be cleared/cancelled automatically before component is unmounted. Check out live demo.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in