summaryrefslogtreecommitdiff
path: root/client/index.jsx
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-06-21 14:02:42 +0200
committerJules Laplace <julescarbon@gmail.com>2017-06-21 14:02:42 +0200
commit08e9e158f9e1b60cb2aefd0fcb88fc82c8b5ed5a (patch)
treee1e98fb624a435838d0b897a2112be2a36139c6c /client/index.jsx
parent8a6b1cc6a1d20a9d3a3170ba12b86adbb48cb2eb (diff)
refactor
Diffstat (limited to 'client/index.jsx')
-rw-r--r--client/index.jsx8
1 files changed, 7 insertions, 1 deletions
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'))