react-content-script icon indicating copy to clipboard operation
react-content-script copied to clipboard

Create a popup

Open abudhakeer opened this issue 3 years ago • 1 comments

Hey Yosevu, Thank you for creating this awesome template. It really helped me in building chrome extensions using react. Though there are multiple examples out there but i couldn't find any with content scripts. Only your example helped me with it.

But when i tried to add a popup to my extension i face some trouble. Because, in your example we consider App.js as content script. But if i use index.html as popup how can i use App.js as content script?

Basically, can you please help in sharing an example for using both popup and content script?

abudhakeer avatar Mar 23 '22 14:03 abudhakeer

Hi @abudhakeer, I'm not sure how much the build would have to change, but will try to take a look at adding a popup example too.

yosevu avatar Jun 18 '22 01:06 yosevu

@yosevu any chance you've played with that example? It would also be really needed for me. Thanks.

kasparas12 avatar Oct 06 '22 17:10 kasparas12

Hello @kasparas12, I'll see if I can put together a basic example in the next couple of days.

yosevu avatar Oct 07 '22 14:10 yosevu

I updated the build to work for Chrome Extension Content Scripts and Popups @abudhakeer @kasparas12. Let me know if you run into any issues!

yosevu avatar Oct 11 '22 06:10 yosevu