high-priority updates don’t get blocked by a low-priority update” • React doesn’t block the thread while rendering • device is fast • device is fast -> Feels synchronous | slow -> responsive • Only final rendered state is displayed • Same declarative component model
Add async data to any component without “plumbing”. • Fast Network – render after tree is ready • Slow network -> precisely control the loading states • There’s both a high-level and a low-level API
practices. They are: ocomponentWillMount ocomponentWillReceiveProps ocomponentWillUpdate Anticipate that their potential misuse may be more problematic with async rendering. Because of this, we will be adding an “UNSAFE_” prefix to these lifecycles in an upcoming release.
the unsafe lifecycles Both the old lifecycle names and the new aliases will work in this release 16.X release Enable deprecation warning for componentWillMount, componentWillReceiveProps, and componentWillUpdate Both the old lifecycle names and the new aliases will work in this release, but the old names will log a DEV-mode warning.) 17.0 Remove componentWillMount, componentWillReceiveProps, and componentWillUpdate Only the new “UNSAFE_” lifecycle names will work from this point forward.)
application developer, you don’t have to do anything about the legacy methods yet. The primary purpose of the upcoming version 16.3 release is to enable open source project maintainers to update their libraries in advance of any deprecation warnings. Those warnings will not be enabled until a future 16.x release. • There’s 50,000 React components at Facebook, and there’s no plan to rewrite them all immediately.