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/index.jsx | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'client/index.jsx')

diff --git a/client/index.jsx b/client/index.jsx
index b78c5ea..639117d 100644
--- a/client/index.jsx
+++ b/client/index.jsx
@@ -1,12 +1,15 @@
 import { h, render } from 'preact'
+import { createStore } from 'redux'
+import { Provider } from 'react-redux'
 import App from './components/App.jsx'
-import { BrowserRouter } from 'react-router-dom'
+import reducer from './reducers/index.js'
+
+const store = createStore(reducer)
 
 const app = (
-  <BrowserRouter>
+  <Provider store={store}>
     <App />
-  </BrowserRouter>
+  </Provider>
 )
 
 render(app, document.getElementById('container'))
-
-- 
cgit v1.2.3-70-g09d2

