mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2025-10-07 07:22:37 +02:00
19 lines
399 B
TypeScript
19 lines
399 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom/client';
|
|
|
|
import Popup from './Popup';
|
|
|
|
import './styles.scss';
|
|
|
|
const container = document.getElementById('popup-root');
|
|
|
|
if (!container) {
|
|
throw new Error("Could not find root container to mount the app");
|
|
}
|
|
|
|
const root = ReactDOM.createRoot(container);
|
|
root.render(
|
|
<React.StrictMode>
|
|
<Popup />
|
|
</React.StrictMode>
|
|
); |