How to pass information from content script to react component for chrome extensions?

77 views Asked by At

I have a content script in my chrome extension that scrapes a couple values from the page. How would I go about sending the captured information down into React? I'm using a v2 manifest. Any guidance would ber greatly appreciated.

I tried using window.postMessage to try and capture the data but I can't seem tto get it correctly recieve. Likely because the extension popup is different from the web page. Is there a better pattern for this?

0

There are 0 answers