lemmy-ui/src/client/index.tsx

22 lines
462 B
TypeScript
Raw Normal View History

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