I see this bro's post.
And try a beautiful way to rewrite it, completely separate UI and logic!
Welcome to know more about Concent,
a predictable、zero-cost-use、progressive、high performance's enhanced staate management solution, born for build large and high performance react app。
By the way: attention the
ICtx I marked in code, with jsdoc type annotation, you can click and see any details you want, of course, you can easily change it to ts code.