lemmy-ui/src/client/index.tsx

12 lines
289 B
TypeScript
Raw Normal View History

2020-08-23 04:04:58 +00:00
import { hydrate } from 'inferno-hydrate';
import { BrowserRouter } from 'inferno-router';
import { App } from '../shared/components/app';
2020-08-23 04:04:58 +00:00
const wrapper = (
<BrowserRouter>
<App site={window.isoData.site} />
2020-08-23 04:04:58 +00:00
</BrowserRouter>
);
2020-08-23 04:04:58 +00:00
hydrate(wrapper, document.getElementById('root'));