by ty___ler · 8y ago · 0 comments
class Test {
async render() {}
}
Kind of hard to come up with a concrete use-case with how little we know about the new features. Still super interesting though!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.