diff --git a/content/blog/2020-08-10-react-v17-rc.md b/content/blog/2020-08-10-react-v17-rc.md index 8e9f9e85f..d9d38119f 100644 --- a/content/blog/2020-08-10-react-v17-rc.md +++ b/content/blog/2020-08-10-react-v17-rc.md @@ -164,7 +164,7 @@ Most effects don't need to delay screen updates, so React runs them asynchronous However, when a component is unmounting, effect *cleanup* functions used to run synchronously (similar to `componentWillUnmount` being synchronous in classes). We've found that this is not ideal for larger apps because it slows down large screen transitions (e.g. switching tabs). -**In React 17, the effect cleanup function will always runs asynchronously -- for example, if the component is unmounting, the cleanup will run _after_ the screen has been updated.** +**In React 17, the effect cleanup function always runs asynchronously -- for example, if the component is unmounting, the cleanup runs _after_ the screen has been updated.** This mirrors how the effects themselves run more closely. In the rare cases where you might want to rely on the synchronous execution, you can switch to `useLayoutEffect` instead. @@ -272,20 +272,20 @@ We encourage you to try React 17.0 Release Candidate soon and [raise any issues] To install React 17 RC with npm, run: ```bash -npm install react@17.0.0-rc.2 react-dom@17.0.0-rc.2 +npm install react@17.0.0-rc.3 react-dom@17.0.0-rc.3 ``` To install React 17 RC with Yarn, run: ```bash -yarn add react@17.0.0-rc.2 react-dom@17.0.0-rc.2 +yarn add react@17.0.0-rc.3 react-dom@17.0.0-rc.3 ``` We also provide UMD builds of React via a CDN: ```html - - + + ``` Refer to the documentation for [detailed installation instructions](/docs/installation.html). @@ -356,6 +356,7 @@ Refer to the documentation for [detailed installation instructions](/docs/instal * Remove `unstable_discreteUpdates` and `unstable_flushDiscreteUpdates`. ([@trueadm](https://github.com/trueadm) in [#18825](https://github.com/facebook/react/pull/18825)) * Remove the `timeoutMs` argument. ([@acdlite](https://github.com/acdlite) in [#19703](https://github.com/facebook/react/pull/19703)) * Disable `