diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-29 00:14:07 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-29 00:14:07 +0200 |
| commit | a190d638c608f4352e3f01d72ed419a5ab5129ed (patch) | |
| tree | dd6e7ea24c2ae4b6251f1ae2b609d9017acfd199 /client/components | |
db stuff and initial app scaffold
Diffstat (limited to 'client/components')
| -rw-r--r-- | client/components/App.jsx | 24 | ||||
| -rw-r--r-- | client/components/Header.jsx | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/client/components/App.jsx b/client/components/App.jsx new file mode 100644 index 0000000..0b1557f --- /dev/null +++ b/client/components/App.jsx @@ -0,0 +1,24 @@ +import { h, Component } from 'preact' +import { isMobile } from '../util' +import db from '../db' +import { Link, withRouter } from 'react-router-dom' + +import Header from './Header.jsx' + +class App extends Component { + constructor(props) { + super() + this.state = { + } + } + render() { + return ( + <div> + <Header /> + </div> + ) + } +} + +export default withRouter(App) + diff --git a/client/components/Header.jsx b/client/components/Header.jsx new file mode 100644 index 0000000..b8c5fd4 --- /dev/null +++ b/client/components/Header.jsx @@ -0,0 +1,18 @@ +import { h, Component } from 'preact' +import { Link } from 'react-router-dom' + +export default class Header extends Component { + constructor(props) { + super() + this.state = { + } + } + render() { + return ( + <div class='header'> + ding dong + </div> + ) + } +} + |
