React-stillness-component
Stillness react component state and rendering
Online Demo
In the React framework, you only need a simple piece of code to achieve keep-alive effects, which can improve your work efficiency.
details
The most important part of this code is the <Offscreen> and useStillness calls, you can edit this code directly to see the effect