mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
add preact with webpack
This commit is contained in:
15
webapp/views/index.js
Normal file
15
webapp/views/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { h } from 'preact'
|
||||
import { Router } from 'preact-router';
|
||||
|
||||
import Home from './pages/Home';
|
||||
import Layout from './components/Layout';
|
||||
import Error404 from './pages/404';
|
||||
|
||||
export default (
|
||||
<Layout>
|
||||
<Router>
|
||||
<Home path="/" />
|
||||
<Error404 default />
|
||||
</Router>
|
||||
</Layout>
|
||||
);
|
||||
Reference in New Issue
Block a user