mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2026-01-30 09:48:12 +01:00
18 lines
355 B
TypeScript
18 lines
355 B
TypeScript
import {StrictMode} from 'react';
|
|
import {createRoot} from 'react-dom/client';
|
|
|
|
import Popup from './Popup';
|
|
|
|
const container = document.getElementById('popup-root');
|
|
|
|
if (!container) {
|
|
throw new Error('Could not find root container to mount the app');
|
|
}
|
|
|
|
const root = createRoot(container);
|
|
root.render(
|
|
<StrictMode>
|
|
<Popup />
|
|
</StrictMode>
|
|
);
|