/react-content-script

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

Primary LanguageTypeScript

React Content Script

Screen Shot 2022-06-18 at 10 04 04 AM

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