What? Facebook built react to solve these problems.
When they built Luna stuff like react didn't exist.
Investing in developer tooling including frameworks is a fine use of time and often pays off hugely. There wasn't a better alternative 11 years ago.