Solved easily how? Only way I can think of is to not use it or anything like it, avoiding client-side rendering entirely, or at least for things that don't have to be and/or are mission critical.
Aka no react for forms, no react for contact, no react for order handling...
Seriously, what is the client-side scripting off solution for using React?
It pretty much means you can't even use .render(), the entire reason for React to even be a thing!
And yeah, it's one issue, but one of many given how most if not all people who CREATED "frameworks" like react, vue, angular, bootstrap, tailwind, etc, etc, don't seem to be qualified to write a single blasted line of HTML.
As evidenced by every one of their examples, and garbage like JSX.