website/blog/2019-09-18-version-0.61.md
We’re excited to announce React Native 0.61, which includes a new reloading experience we’re calling Fast Refresh.
When we asked the React Native community about common pain points, one of the top answers was that the “hot reloading” feature was broken. It didn’t work reliably for function components, often failed to update the screen, and wasn’t resilient to typos and mistakes. We heard that most people turned it off because it was too unreliable.
In React Native 0.61, we’re unifying the existing “live reloading” (reload on save) and “hot reloading” features into a single new feature called “Fast Refresh”. Fast Refresh was implemented from scratch with the following principles:
To see Fast Refresh in action, check out this video:
<p style={{textAlign: 'center'}}> <video width={700} controls="controls" autoPlay> <source type="video/mp4" src="https://reactnative.dev/img/homepage/ReactRefresh.mp4" /> </video> </p>Give it a try, and let us know what you think! If you prefer, you can turn it off in the Dev Menu (Cmd+D on iOS, Cmd+M or Ctrl+M on Android). Turning it on and off is instant so you can do it any time.
Here are a few Fast Refresh tips:
// @refresh reset comment to the file with that component.console.log or a debugger statement during edits is a neat debugging technique.Please report any issues with Fast Refresh on GitHub, and we’ll look into them.
act, and more. See the React 16.9 blog post for an automated migration script and more information.Thanks to all of the contributors that helped make 0.61 possible!
To see all the updates, take a look at the 0.61 changelog.