You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a [great article][1] about how react implements it's
virtual DOM. There are some really interesting ideas in there
but they are deeply buried in the implementation of the React
framework.
However, it's possible to implement just the virtual DOM and
diff algorithm on it's own as a set of independent modules.
Demo: Coordinating async React with non-React views
Demo: Coordinating async React with non-React views
tl;dr I built a demo illustrating what it might look like to add async rendering to Facebook's commenting interface, while ensuring it appears on the screen simultaneous to the server-rendered story.
A key benefit of async rendering is that large updates don't block the main thread; instead, the work is spread out and performed during idle periods using cooperative scheduling.
But once you make something async, you introduce the possibility that things may appear on the screen at separate times. Especially when you're dealing with multiple UI frameworks, as is often the case at Facebook.