Comment

Comment by alexeyraspopov

Interop with language feature is definitely a thing. It helps people to understand a tool without the need of digging into implementation details, since those details are language features that developers already familiar with.

There is a way to do this kind of things with current React version (16.2): https://github.com/alexeyraspopov/react-coroutine

You can use generators, async functions, and even more, async generators. Worth checking examples in the repo.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton