diff options
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')) |
