@isthatuzii/create-nano-app
Version:
Desktop application scaffolding tool for the Nano Framework
13 lines (10 loc) • 408 B
JSX
/* @refresh reload */
import { render } from 'solid-js/web';
import TemplateApp from './TemplateApp.jsx';
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(() => <TemplateApp />, root);