79564051

Date: 2025-04-09 10:10:18
Score: 1
Natty:
Report link

Components will lose their states when unmounted, if you want to keep these states, you can move the state to their parent component or use global store like redux/zustand. Or just change the display css property rather than unmount them.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: xiaoyu