This project demonstrates how to build a Chrome Extension using React and TypeScript. It includes examples of a Popup and a Content Script React app, both built and bundled with Vite and crxjs.
git clone git@github.com:yosevu/react-content-script.git
yarn
To start a development server with hot-reloading:
yarn dev
To create a production-ready build of the extension:
yarn build
dist
directory inside the react-content-script
directory.The popup source code is at the root directory.
The content script source code is in the content-script
directory.
yarn dev
to see changes immediately during development.This repository was originally part of How to inject a React app into a Chrome Extension as a Content Script.
This project is licensed under the MIT License - see the LICENSE file for details.