From 08e9e158f9e1b60cb2aefd0fcb88fc82c8b5ed5a Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Wed, 21 Jun 2017 14:02:42 +0200
Subject: refactor

---
 client/index.jsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'client/index.jsx')

diff --git a/client/index.jsx b/client/index.jsx
index ea3a726..b3c001a 100644
--- a/client/index.jsx
+++ b/client/index.jsx
@@ -2,4 +2,10 @@ import { h, render } from 'preact'
 import App from './components/App.jsx'
 import { BrowserRouter } from 'react-router-dom'
 
-render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('container'))
+const app = (
+  <BrowserRouter>
+    <App />
+  </BrowserRouter>
+)
+
+render(app, document.getElementById('container'))
-- 
cgit v1.2.3-70-g09d2

