From d520c67839724e80d8b68b8fe933f1e7755a8f42 Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Tue, 4 Jul 2017 04:14:03 +0200
Subject: writing task form in a reduxy way

---
 client/components/App.jsx | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)

(limited to 'client/components/App.jsx')

diff --git a/client/components/App.jsx b/client/components/App.jsx
index 5340ba1..0af326f 100644
--- a/client/components/App.jsx
+++ b/client/components/App.jsx
@@ -1,7 +1,6 @@
 import { h, Component } from 'preact'
 import { isMobile } from '../vendor/util'
 // import db from '../db'
-import { Link, withRouter } from 'react-router-dom'
 
 import Header from './UI/Header.jsx'
 import Browser from './Browser/Browser.jsx'
@@ -9,23 +8,16 @@ import Tasks from './Tasks/Tasks.jsx'
 
 import client from '../client'
 
-class App extends Component {
-  constructor(props) {
-    super()
-    this.state = {
-    }
-  }
-  render() {
-    return (
-      <div>
-        <Header />
-        <div class='columns'>
-          <Browser />
-          <Tasks />
-        </div>
+const App = () => {
+  return (
+    <div>
+      <Header />
+      <div class='columns'>
+        <Browser />
+        <Tasks />
       </div>
-    )
-  }
+    </div>
+  )
 }
 
-export default withRouter(App)
+export default App
-- 
cgit v1.2.3-70-g09d2

