You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I am currently trying to do some DOM manipulation / display custom components within www.example.com.
I know that in order to modify the DOM elements within a certain domain the work would need to be done within the src/pages/Content directory, but I'm struggling to figure out how would I go about injecting custom React components into there. Is this even a possible thing to do or do I have the wrong idea about Chrome's content scripts?
Thank you!
The text was updated successfully, but these errors were encountered:
To inject React components into a site using a content script, you will need to call React's createRoot on a particular DOM node, which gives React the ability to manipulate the contents of the DOM node.
Let's say we have a document which looks like the following:
Hi there, I am currently trying to do some DOM manipulation / display custom components within www.example.com.
I know that in order to modify the DOM elements within a certain domain the work would need to be done within the src/pages/Content directory, but I'm struggling to figure out how would I go about injecting custom React components into there. Is this even a possible thing to do or do I have the wrong idea about Chrome's content scripts?
Thank you!
The text was updated successfully, but these errors were encountered: