mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
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. |
||
|---|---|---|
| .. | ||
| npm | ||
| src | ||
| babel.js | ||
| package.json | ||
| README.md | ||
| runtime.js | ||
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 you’re working on one, here is a rough guide for Fast Refresh integration using this package.