This is a fair criticism! I am biased because my work history has placed me in companies that really care about maintaining this illusion.
> React.js-era software is rotting to death, "reliable" is not a word that remotely describes my daily experience with web software today.
I will say, that some of this is the result of how hard the problem we're talking about is. While React could definitely improve the affordances for this logic, having worked with a few systems that try to maintain the illusion of a reliable network I've found inherent tensions balancing speed, performance, cost, and time the UI spends in an inconsistent state. It's a Hard Problem™.
Regardless, I'm wishing you the best of luck. I'm heartened to hear what you have is 2k lines, it will make a re-write much less painful if it's needed :)