Norfeldt / react-content-script

How to Inject a React app into a Chrome Extension as a content script.

Home Page:https://medium.com/@yosevu/how-to-inject-a-react-app-into-a-chrome-extension-as-a-content-script-3a038f611067

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Content Script

How to inject React app into a Chrome Extension Content Script.

  1. git clone git@github.com:yosevu/react-content-script.git
  2. npm run build
  3. Navigate to chrome://extensions/
  4. Click the "Developer mode" toggle switch in the top right of the window
  5. Click the "Load unpacked" button in top left of the window
  6. Go to the react-content-script directory and select the "build" directory to load the extension
  7. Navigate to https://blank.org/ to see the React app

About

How to Inject a React app into a Chrome Extension as a content script.

https://medium.com/@yosevu/how-to-inject-a-react-app-into-a-chrome-extension-as-a-content-script-3a038f611067


Languages

Language:JavaScript 57.5%Language:HTML 27.6%Language:CSS 14.9%