How to inject React component on page?
Hi I want to render an icon next to a div on the webpage and when that icon is clicked I want to render a React component on the top right of the page. I've found docs on how to inject a React component on the page but I'm not sure how to render it based on clicking another component. Thanks!
L
LeonidKaralis•15d ago
@h123
You can add it with iframe what you made in tabs folder.
try this:
const iframe = document.createElement("iframe")
iframe.src = chrome.runtime.getURL("/tabs/left-content.html")
iframe.name = "left-content"
document.body.appendChild(iframe)
2.1KMembers
View on DiscordWant results from more Discord servers?
More Postsremount csui on url changei have built an extension using plasmo which injects some ui into the dom using getRootContainer
thelocal storage dev tools plasmoHi all,
I am trying to locate the storage api data. I am aware the data is stored in chrome.storageIs there something special you need to do to get a side panel to refresh on changes?Is there something special you need to do to get a side panel to refresh on changes? If I load and plasmo build --zip vs web-ext buildWhat's the difference?
https://extensionworkshop.com/documentation/develop/web-ext-command-reference