I have created a chrome extension using react and typscript.
It all works fine with dummy data, and now I want to render the data based on the current url tab that is open.
How can I pass data from background.js to the main App component?
I want to use the current url where the chrome extension is open.
I have successfully managed to log the current url in the service worker console through the background.js, and now I want to simply pass it to the App.tsx to be used there.
Is there any way to establish this connection?
Is there another way where I can get the current url to be used in the App component?