react/packages/react-refresh
Sophie Alpert 21670cf4be
[react-refresh/babel] Always insert registrations after var (#18794)
Previously, we transformed

```
let Foo = styled.div``;
```

to

```
let Foo = _c1 = styled.div``;
```

and then babel-plugin-styled-components would infer `_c1` as the display name. Widen the existing case that applies to function expressions to apply to any type of variable declaration.
2020-05-01 16:01:11 +01:00
..
npm [Fresh] react-fresh => react-refresh (#15888) 2019-06-15 19:36:46 +01:00
src [react-refresh/babel] Always insert registrations after var (#18794) 2020-05-01 16:01:11 +01:00
babel.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
package.json Update package.jsons for 16.13.1 patch relase 2020-03-19 12:58:31 -07:00
README.md Update react-refresh README 2020-04-30 15:43:21 +01:00
runtime.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00

react-refresh

This package implements the wiring necessary to integrate Fast Refresh into bundlers. Fast Refresh is a feature that lets you edit React components in a running application without losing their state. It is similar to an old feature known as "hot reloading", but Fast Refresh is more reliable and officially supported by React.

This package is primarily aimed at developers of bundler plugins. If youre working on one, here is a rough guide for Fast Refresh integration using this package.