react/packages/react-refresh
dan 86d5ac0882
Revert "Fix:- Improve HOC support and state preservation in React Refresh" (#32214)
Reverts facebook/react#30660

I don’t feel confident in the approach. This part of code is supposed to
rely on the module bundler behaving as expected. _Maybe_ this is correct
but I need to review it closer — it was intentionally _not_ implemented
this way originally.

I’ll try to take a closer look some time this week. We don’t have to
merge this revert right now but just flagging that I don’t understand
the thinking behind the new approach and don’t have confidence in it.
2025-03-18 19:05:56 +00:00
..
npm Don't minify symbols in production builds (#28881) 2024-04-20 11:23:46 -04:00
src Revert "Fix:- Improve HOC support and state preservation in React Refresh" (#32214) 2025-03-18 19:05:56 +00:00
babel.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
package.json Bump next prerelease version numbers (#31676) 2024-12-12 14:10:46 -05:00
README.md Update react-refresh README 2020-04-30 15:43:21 +01:00
runtime.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04: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.