v16.6.0
版本发布时间: 2018-10-24 08:03:15
facebook/react最新发布版本:v18.3.1(2024-04-27 03:53:42)
16.6.0 (October 23, 2018)
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)
1、 react-dom-server.browser.development.js 108.21KB
2、 react-dom-server.browser.production.min.js 15.88KB
3、 react-dom-test-utils.development.js 45.82KB
4、 react-dom-test-utils.production.min.js 9.96KB
5、 react-dom.development.js 680.89KB
6、 react-dom.production.min.js 98.01KB
7、 react-dom.profiling.min.js 100.38KB
8、 react-is.development.js 7.36KB
9、 react-is.production.min.js 2.06KB
10、 react-test-renderer-shallow.development.js 26.63KB
11、 react-test-renderer-shallow.production.min.js 7.22KB
12、 react-test-renderer.development.js 412.86KB
13、 react-test-renderer.production.min.js 56.15KB
14、 react.development.js 93.69KB
15、 react.production.min.js 11.65KB
16、 react.profiling.min.js 13.81KB