diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-21 14:02:42 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-21 14:02:42 +0200 |
| commit | 08e9e158f9e1b60cb2aefd0fcb88fc82c8b5ed5a (patch) | |
| tree | e1e98fb624a435838d0b897a2112be2a36139c6c /client/index.jsx | |
| parent | 8a6b1cc6a1d20a9d3a3170ba12b86adbb48cb2eb (diff) | |
refactor
Diffstat (limited to 'client/index.jsx')
| -rw-r--r-- | client/index.jsx | 8 |
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')) |
