React
Adds a sidebar panel to the browser with a simple React page.
Runs on Chrome, Edge, Firefox · Manifest V3 · Surfaces: sidebar, content script, popup, background service worker · Styling: CSS · Framework: react
Create this project
npx extension@latest create my-react --template react
cd my-react
npm install
npm run dev
Files in this template
- extension.config.js
- src/background.ts
- src/content/ContentApp.tsx
- src/content/scripts.tsx
- src/content/styles.css
- src/images/icon.png
- src/manifest.json
- src/sidebar/SidebarApp.tsx
- src/sidebar/index.html
- src/sidebar/scripts.tsx
- src/sidebar/styles.css
Source on GitHubDocumentation
extension.devDocumentation for extension.dev