Today we’re releasing React 16.6 with a few new convenient features. A form of PureComponent/shouldComponentUpdate for function components, a way to do code splitting using Suspense and an easier way to consume Context from class components.
Class components can bail out from rendering when their input props are the same using
shouldComponentUpdate. Now you can do the same with function components by wrapping them in
The Suspense component will also allow library authors to start building data fetching with Suspense support in the future.
... read the whole story at reactjs.org.
Note: This feature is not yet available for server-side rendering. Suspense support will be added in a later release.