Beta5
New code structure Added profiles Fixed skin pulldown Added rain images
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// ════════════════════════════════════════════════════════════════════════
|
||||
// main.js — Entry point. Imports the app and mounts it into the page.
|
||||
//
|
||||
// This is the file loaded by index.html as <script type="module">.
|
||||
// It does nothing except wire the root component to the DOM node.
|
||||
//
|
||||
// If nothing appears on the page, check that:
|
||||
// 1. index.html contains <div id="root"></div>
|
||||
// 2. index.html loads THIS file as <script type="module" src="...">
|
||||
// 3. The browser console (F12) shows no import errors
|
||||
// ════════════════════════════════════════════════════════════════════════
|
||||
|
||||
import { h, render } from '../vendor/preact.js';
|
||||
import { UTCIForecast } from './app.js';
|
||||
|
||||
const rootEl = document.getElementById('root');
|
||||
if (rootEl) render(h(UTCIForecast, null), rootEl);
|
||||
Reference in New Issue
Block a user