import { h, render } from 'preact' import { Route, Router, Switch } from 'wouter-preact' import { useHashLocation, extractView } from '~/src/utils/utils.routing' import { useThemeEngine } from '~/src/themes/themes' import HomeView from '~/src/views/HomeView' import PlayerView from '~/src/views/PlayerView' import NotFoundView from '~/src/views/NotFoundView' import '@fontsource/open-sans' import '~/src/style/base.css' function App () { const themeEngine = useThemeEngine() const [location] = useHashLocation() return (
{params => } top100
) } render(, document.getElementById('root'))