import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import './index.css';


const Root = () => (
    <React.StrictMode>
        <App />
    </React.StrictMode>
)

export const mount = ({ el } : {el?: HTMLElement}) => {
    if (el) {
        ReactDOM.createRoot(el).render(<Root />);
    }
}

