SIGN IN SIGN UP

Fix:- Improve HOC support and state preservation in React Refresh (#30660)

## Summary

This fixes #30659 , the issue was how the state was preserved and needed
special cases for the forward and memo, have also added tests related to
the same.
## How did you test this change?

`yarn test packages/react-refresh/src/__tests__/ReactFresh-test.js`

![Screenshot 2024-08-12 at 4 27
39 PM](https://github.com/user-attachments/assets/2b597a62-c45f-443b-acfc-3232962ba0a3)
B
BIKI DAS committed
de1eaa2655ee29933425695ae0af756bf6713147
Parent: ae9017c
Committed by GitHub <noreply@github.com> on 1/24/2025, 11:48:20 AM