Making setInterval Declarative with React Hooks — Overreacted

Nice writeup about encapsulating imperative code in declarative API