Is there anyway for us to trigger React to re-render from the outside?
The situation is I'm developing a chrome extension which directly mutate the DOM, that technique cause the Virtual DOM of React confused. So I need to figure out a way to trigger the React to re-render the whole page. The website that I'm targeting is a web chat (similar to Messenger) which is a SPA powered by React. I can't do anything with their React code but only can build another layer of code on top of their code.
Is this idea technically impossible? Is there anyway to trick React to re-render from the outside. (by outside, I mean without touching the React code of the website).