guidsen
PD🧩 Plasmo Developers
•Created by guidsen on 3/25/2024 in #🔰newbie
Inserting element on click within a Content Script
Hi all, I'm having a React Component that add a click event listener on the body.
When I click on a element, I want to show a dropdown below with a couple of options.
How do I do this? Currently I have:
But I get the error
Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'
I assume this has to do with the fact that the JSX element is not transformed or so. How to fix?2 replies