mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
add preact with webpack
This commit is contained in:
10
webapp/views/components/Header.js
Normal file
10
webapp/views/components/Header.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { h } from 'preact';
|
||||
import { Link } from 'preact-router';
|
||||
|
||||
export default function () {
|
||||
return (
|
||||
<header className="header">
|
||||
<h1>PDFer</h1>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
13
webapp/views/components/Layout.js
Normal file
13
webapp/views/components/Layout.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { h } from 'preact';
|
||||
import Header from './Header';
|
||||
|
||||
export default function (props) {
|
||||
return (
|
||||
<div id="app">
|
||||
<Header />
|
||||
<div id="content">
|
||||
{ props.children }
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user