import { render } from 'solid-js/web';

// eslint-disable-next-line @lottiefiles/import-filename-format
import App from './App';

import './index.css';

const root = document.getElementById('root');

if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
  throw new Error(
    'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?',
  );
}

render(() => <App />, root as HTMLElement);
