When I was going through the source code of React, I came across a base class called "AsyncComponent". This is new to me unlike popular base classes "Component" and "PureComponent". I was wondering what it was and if, how & where it is being utilized to understand it better.
It is an alternative to using the static class property unstable_asyncUpdates
. Everything inside has async updates by default.
As I understand it, you can achieve the same result using
ReactDOM.deferredUpdates
.
But the main problem is that async rendering is not ready yet and it will become available later.
Quote from Release notes to v16:
We think async rendering is a big deal, and represents the future of React. To make migration to v16.0 as smooth as possible, we’re not enabling any async features yet, but we’re excited to start rolling them out in the coming months. Stay tuned!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With