Tagged with "javascript"

Using the IntersectionObserver API with React hooks

Modern browsers ship a web API called IntersectionObserver that largely obviates the need for inefficient scroll event listeners. Let's use it to create an infinitely scrolling page using React hooks.

Published: October 23, 2019, Tags:
Recursive generators in javascript

ES6 finally brought iterators and generators to javascript. Recently, I found out how you can nest generators to implement lazy recursion.

Published: October 4, 2019, Tags: