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