mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
inital commit
This commit is contained in:
parent
7c4c9bcfa5
commit
9256abebb1
59 changed files with 5172 additions and 6797 deletions
23
src/index.tsx
Normal file
23
src/index.tsx
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { render } from 'preact';
|
||||
import { LocationProvider, Router, Route } from 'preact-iso';
|
||||
|
||||
import { Header } from './components/Header.jsx';
|
||||
import { Home } from './pages/Home';
|
||||
import { NotFound } from './pages/_404.jsx';
|
||||
import './style.css';
|
||||
|
||||
export function App() {
|
||||
return (
|
||||
<LocationProvider>
|
||||
<Header />
|
||||
<main>
|
||||
<Router>
|
||||
<Route path="/" component={Home} />
|
||||
<Route default component={NotFound} />
|
||||
</Router>
|
||||
</main>
|
||||
</LocationProvider>
|
||||
);
|
||||
}
|
||||
|
||||
render(<App />, document.getElementById('app'));
|
Loading…
Add table
Add a link
Reference in a new issue