-import { Component } from 'inferno';
import { hydrate } from 'inferno-hydrate';
import { BrowserRouter } from 'inferno-router';
-import App from './components/App/App';
-import { initDevTools } from 'inferno-devtools';
-
-declare global {
- interface Window {
- isoData: {
- name: string;
- };
- }
-}
+import { App } from '../shared/components/app';
const wrapper = (
<BrowserRouter>
- <App name={window.isoData.name} />
+ <App site={window.isoData.site} />
</BrowserRouter>
);
-initDevTools();
+
hydrate(wrapper, document.getElementById('root'));