react v16.6.0 Release Notes
Release Date: 2018-10-23 // over 5 years ago-
React
- โ Add
React.memo()
as an alternative toPureComponent
for functions. (@acdlite in #13748) - โ Add
React.lazy()
for code splitting components. (@acdlite in #13885) React.StrictMode
now warns about legacy context API. (@bvaughn in #13760)React.StrictMode
now warns aboutfindDOMNode
. (@sebmarkbage in #13841)- Rename
unstable_AsyncMode
tounstable_ConcurrentMode
. (@trueadm in #13732) - ๐ Rename
unstable_Placeholder
toSuspense
, anddelayMs
tomaxDuration
. (@gaearon in #13799 and @sebmarkbage in #13922)
React DOM
- โ Add
contextType
as a more ergonomic way to subscribe to context from a class. (@bvaughn in #13728) - โ Add
getDerivedStateFromError
lifecycle method for catching errors in a future asynchronous server-side renderer. (@bvaughn in #13746) - Warn when
<Context>
is used instead of<Context.Consumer>
. (@trueadm in #13829) - ๐ Fix gray overlay on iOS Safari. (@philipp-spiess in #13778)
- ๐ Fix a bug caused by overwriting
window.event
in development. (@sergei-startsev in #13697)
React DOM Server
- โ Add support for
React.memo()
. (@alexmckenley in #13855) - โ Add support for
contextType
. (@alexmckenley and @sebmarkbage in #13889)
โฑ Scheduler (Experimental)
- โฑ Rename the package to
scheduler
. (@gaearon in #13683) - ๐ Support priority levels, continuations, and wrapped callbacks. (@acdlite in #13720 and #13842)
- ๐ Improve the fallback mechanism in non-DOM environments. (@acdlite in #13740)
- โฑ Schedule
requestAnimationFrame
earlier. (@acdlite in #13785) - ๐ Fix the DOM detection to be more thorough. (@trueadm in #13731)
- ๐ Fix bugs with interaction tracing. (@bvaughn in #13590)
- โ Add the
envify
transform to the package. (@mridgway in #13766)
- โ Add